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.