Bitcoin Forum

Economy => Services => Topic started by: MoneypakTrader.com on May 31, 2013, 06:49:26 PM



Title: $40 in BTC for some php/mysql coding help, quick problem
Post by: MoneypakTrader.com on May 31, 2013, 06:49:26 PM
UPDATE: THIS WAS A VERY DIFFICULT TASK AND NONE OF THE SUBMISSIONS WORKED, but they gave me some ideas on how to do it and I eventually got the code written myself.
(5/31/13) THE CONTEST IS OVER


I need php code to allow selective display through a drop-down box with the contents of several mysql entries when the box is clicked.
Specifically, The code:
echo '<tr><td><div class="btn-group">
<button class="btn dropdown-toggle" data-toggle="dropdown"> '.$r['id'].' <span class="caret"></span></button>
<ul class="dropdown-menu">';
echo '<li> '.$r['id'].' </li>';
echo '</ul>
</div></td></tr>';

This code prints the correct 'id' variable from table 'a'.
I need to change the code to instead print each and every (there are multiple) 'msg' variables from table 'b' if the table 'b' row has 'ID' matching the variable 'id' as printed above (remember that 'id' is from table 'a').
To rephrase, table 'b' has columns for 'ID' and 'msg', I need each 'msg' printed where that row's 'ID' = 'id' (from table 'a' as revealed with [echo '<li> '.$r['id'].' </li>';])

It should be pretty simple, but I don't know enough to do it atm.

Value for partial or non-functional code: 0BTC
Value for a completely working code substitution: $40 (in BTC).

Just post the code here with your btc address. If it works, you get coin, if not, no coin.


Title: Re: $40 in BTC for some php/mysql coding help, quick problem
Post by: Panchitoboy on May 31, 2013, 07:03:55 PM
pm sended


Title: Re: $40 in BTC for some php/mysql coding help, quick problem
Post by: nzbmaster on May 31, 2013, 09:38:46 PM
You don't really provide enough code to do this (ie what variable is table b's data stored in, assuming its already been queried). However I would hazard it would be something like the following (assuming table b's data is already queried and stored in $tableB as an array):

Code:
<?php

echo '<tr><td><div class="btn-group">
<button class="btn dropdown-toggle" data-toggle="dropdown"> '
.$r['id'].' <span class="caret"></span></button>
<ul class="dropdown-menu">'
;

foreach(
$tableB as $b)
{
      if (
$b['ID'] == $r['id'])
      {
            echo 
'<li> '.$b['msg'].' </li>';
      }
}

echo 
'</ul>
</div></td></tr>'
;

?>



Title: Re: $40 in BTC for some php/mysql coding help, quick problem
Post by: vit1988 on May 31, 2013, 10:32:37 PM

Code:
echo '<tr><td><div class="btn-group">
<button class="btn dropdown-toggle" data-toggle="dropdown"> '.$r['id'].' <span class="caret"></span></button>
<ul class="dropdown-menu">';
$r = mysql_query('SELECT msg FROM b WHERE ID="' . mysql_real_escape_string($r['id']) . '"' );
while ($d = mysql_fetch_assoc($r)) {
    echo '<li> '. htmlspecialchars($d['msg']) .' </li>';
}
echo '</ul>
</div></td></tr>';

?

1PcvEYS54SggtN49n57T2K3cpss3D7xpWp


Title: Re: $40 in BTC for some php/mysql coding help, quick problem
Post by: MoneypakTrader.com on June 01, 2013, 04:55:01 AM

Code:
echo '<tr><td><div class="btn-group">
<button class="btn dropdown-toggle" data-toggle="dropdown"> '.$r['id'].' <span class="caret"></span></button>
<ul class="dropdown-menu">';
$r = mysql_query('SELECT msg FROM b WHERE ID="' . mysql_real_escape_string($r['id']) . '"' );
while ($d = mysql_fetch_assoc($r)) {
    echo '<li> '. htmlspecialchars($d['msg']) .' </li>';
}
echo '</ul>
</div></td></tr>';

?

1PcvEYS54SggtN49n57T2K3cpss3D7xpWp

This yields a dash-like block with no text (dash block is too narrow vertically to display text).
Also, I had to correct for r which was already used as a variable.


Title: Re: $40 in BTC for some php/mysql coding help, quick problem
Post by: MoneypakTrader.com on June 01, 2013, 05:59:35 AM
You don't really provide enough code to do this (ie what variable is table b's data stored in, assuming its already been queried). However I would hazard it would be something like the following (assuming table b's data is already queried and stored in $tableB as an array):

Code:
<?php

echo '<tr><td><div class="btn-group">
<button class="btn dropdown-toggle" data-toggle="dropdown"> '
.$r['id'].' <span class="caret"></span></button>
<ul class="dropdown-menu">'
;

foreach(
$tableB as $b)
{
      if (
$b['ID'] == $r['id'])
      {
            echo 
'<li> '.$b['msg'].' </li>';
      }
}

echo 
'</ul>
</div></td></tr>'
;

?>


This did not work either.

Contest is over. I have created a solution. I might send you 2 a little something for the effort to encourage people helping with my next task.


Title: Re: $40 in BTC for some php/mysql coding help, quick problem
Post by: MPOE-PR on June 01, 2013, 10:16:09 AM
This is probably the best thread of the day.

For my own curiosity, will this be a new Bitcoin/fiat exchange, a Bitcoin forex or a new ASIC miner?


Title: Re: $40 in BTC for some php/mysql coding help, quick problem
Post by: 🏰 TradeFortress 🏰 on June 01, 2013, 10:34:38 AM
Some definitely not US based (read their ToS lol) MoneyPak and US debit card laundering site using my code while accusing I'm a scammer. Wut.

I do have to give him kudos for learning from previous services through. (http://www.reddit.com/r/Bitcoin/comments/1c8yqr/scary_stackoverflow_question_from_bitcoin24s_admin/)


Title: Re: $40 in BTC for some php/mysql coding help, quick problem
Post by: MoneypakTrader.com on June 01, 2013, 03:41:32 PM
Some definitely not US based (read their ToS lol) MoneyPak and US debit card laundering site using my code while accusing I'm a scammer. Wut.
I do have to give him kudos for learning from previous services through. (http://www.reddit.com/r/Bitcoin/comments/1c8yqr/scary_stackoverflow_question_from_bitcoin24s_admin/)
Post *YOUR* code if I'm really using it dumass, you gave me shit, I paid another programmer to actually code the site since your code was non-functional.
Your ARE a scammer unless you can post your functional code, which you obviously can't b/c it doesn't exist.


Title: Re: $40 in BTC for some php/mysql coding help, quick problem
Post by: MoneypakTrader.com on June 01, 2013, 03:42:39 PM
This is probably the best thread of the day.

For my own curiosity, will this be a new Bitcoin/fiat exchange, a Bitcoin forex or a new ASIC miner?
work is related to upgrading my site (link is below and also to left of this message)


Title: Re: $40 in BTC for some php/mysql coding help, quick problem
Post by: Panchitoboy on June 01, 2013, 06:20:03 PM
anyone win the bitcoin?


Title: Re: $40 in BTC for some php/mysql coding help, quick problem
Post by: MPOE-PR on June 01, 2013, 08:49:38 PM
work is related to upgrading my site (link is below and also to left of this message)

I see.


Title: Re: $40 in BTC for some php/mysql coding help, quick problem
Post by: 🏰 TradeFortress 🏰 on June 02, 2013, 02:54:05 AM
Some definitely not US based (read their ToS lol) MoneyPak and US debit card laundering site using my code while accusing I'm a scammer. Wut.
I do have to give him kudos for learning from previous services through. (http://www.reddit.com/r/Bitcoin/comments/1c8yqr/scary_stackoverflow_question_from_bitcoin24s_admin/)
Post *YOUR* code if I'm really using it dumass, you gave me shit, I paid another programmer to actually code the site since your code was non-functional.
Your ARE a scammer unless you can post your functional code, which you obviously can't b/c it doesn't exist.
Which programmer did you pay? His changes introduced a new security vulnerability:

https://i.imgur.com/M2foyx2.png

70% or so of the code is mine from what I see. I thought you said that the coder was going to redo it in scratch?


Title: Re: $40 in BTC for some php/mysql coding help, quick problem
Post by: MoneypakTrader.com on June 02, 2013, 07:09:55 AM
Some definitely not US based (read their ToS lol) MoneyPak and US debit card laundering site using my code while accusing I'm a scammer. Wut.
I do have to give him kudos for learning from previous services through. (http://www.reddit.com/r/Bitcoin/comments/1c8yqr/scary_stackoverflow_question_from_bitcoin24s_admin/)
Post *YOUR* code if I'm really using it dumass, you gave me shit, I paid another programmer to actually code the site since your code was non-functional.
Your ARE a scammer unless you can post your functional code, which you obviously can't b/c it doesn't exist.
Which programmer did you pay? His changes introduced a new security vulnerability:

https://i.imgur.com/M2foyx2.png

70% or so of the code is mine from what I see. I thought you said that the coder was going to redo it in scratch?

What's the extent of the vulnerability?
I'll credit the discoveries against what you owe me.
You're a lying piece of shit, your code doesn't exist or you would have revealed it by now.
You could easily host it somewhere using all those scammed coins, but then people would see and compare for themselves to figure out you're a scamming scumbag.


Title: Re: $40 in BTC for some php/mysql coding help, quick problem
Post by: 🏰 TradeFortress 🏰 on June 02, 2013, 07:58:46 AM
It's called see here: https://www.owasp.org/index.php/Category:OWASP_Guide_Project

You know you are using parts of my code, obviously I don't have what changes you made.


Title: Re: $40 in BTC for some php/mysql coding help, quick problem
Post by: MoneypakTrader.com on June 02, 2013, 06:04:14 PM
This Scammer hacked my site:
https://bitcointalk.org/index.php?topic=223665


Title: Re: $40 in BTC for some php/mysql coding help, quick problem
Post by: RavinTavin on June 02, 2013, 08:40:07 PM
Some definitely not US based (read their ToS lol) MoneyPak and US debit card laundering site using my code while accusing I'm a scammer. Wut.
I do have to give him kudos for learning from previous services through. (http://www.reddit.com/r/Bitcoin/comments/1c8yqr/scary_stackoverflow_question_from_bitcoin24s_admin/)
Post *YOUR* code if I'm really using it dumass, you gave me shit, I paid another programmer to actually code the site since your code was non-functional.
Your ARE a scammer unless you can post your functional code, which you obviously can't b/c it doesn't exist.
Which programmer did you pay? His changes introduced a new security vulnerability:

https://i.imgur.com/M2foyx2.png

70% or so of the code is mine from what I see. I thought you said that the coder was going to redo it in scratch?

"Boom Baby!"
lol
http://www.heavemedia.com/wp-content/uploads/2012/06/Oceans-12.jpg


Title: Re: $40 in BTC for some php/mysql coding help, quick problem
Post by: MoneypakTrader.com on June 02, 2013, 09:25:57 PM
He didn't get anything except data (potentially).
But he's such a shitty programmer, even that is doubtful how much he got.


Title: Re: $40 in BTC for some php/mysql coding help, quick problem
Post by: RavinTavin on June 02, 2013, 09:30:24 PM
He didn't get anything except data (potentially).
But he's such a shitty programmer, even that is doubtful how much he got.

I mean this in the best way possible, but you're kinda being the drunk guy who just got beat up and won't shut up. Resulting in getting beat up further! Just leave it alone and walk away!


Title: Re: $40 in BTC for some php/mysql coding help, quick problem
Post by: MoneypakTrader.com on June 02, 2013, 09:42:46 PM
He didn't get anything except data (potentially).
But he's such a shitty programmer, even that is doubtful how much he got.

I mean this in the best way possible, but you're kinda being the drunk guy who just got beat up and won't shut up. Resulting in getting beat up further! Just leave it alone and walk away!
Huh?
It's my fault trolls are beating me up and publicizing the scammer's action is bad?
Really, this is a good thing I found the fault in the programmers code and now they are still claiming credit for coding my site, so it really shows how scammy some of the make-pretend programmers on this forum are.

Just to clarify:
Site got hacked once.
I'm taking steps to fix it with the $100 bounty.
I appreciate other people penetration testing *IF* they check with me first and explain the methods used.


Title: Re: $40 in BTC for some php/mysql coding help, quick problem
Post by: MPOE-PR on June 03, 2013, 01:27:37 PM
This Scammer hacked my site:
https://bitcointalk.org/index.php?topic=223665

Too much lol.

He didn't get anything except data (potentially).
But he's such a shitty programmer, even that is doubtful how much he got.

I mean this in the best way possible, but you're kinda being the drunk guy who just got beat up and won't shut up. Resulting in getting beat up further! Just leave it alone and walk away!

Actually he reminds me a little of rikur & his buttbuddy (https://bitcointalk.org/index.php?topic=192122.0).

It's my fault trolls are beating me up and publicizing the scammer's action is bad?

1. It is your fault; 2. What you are doing (all of it) is the exact icon of wrong; 3. This includes what you call things.


Title: Re: $40 in BTC for some php/mysql coding help, quick problem
Post by: MoneypakTrader.com on June 03, 2013, 07:36:38 PM
[. . .] This includes what you call things.

that's the first time "things" appears in this thread.

Contest over, please discontinue use/lock thread.