Pages:
Author

Topic: $40 in BTC for some php/mysql coding help, quick problem - page 2. (Read 2232 times)

newbie
Activity: 41
Merit: 0
sr. member
Activity: 472
Merit: 250
Never spend your money before you have it.
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 '



';

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 '
  • '.$r['id'].'
  • ';])

    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.
    Pages:
    Jump to: