I searched daniweb, google, etc. All had multible code snippets but I couldnt get any to work..
Well my database is "wallet" and in the row is "id" and "amount"
So I tried like
$result = mysql_query("SELECT amount FROM wallet WHERE id LIKE '%$id%'");
while ($row = mysql_fetch_assoc($result)) {
$money = stripslashes($row["amount"]);
}
But that just gives me
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource
..Anybody help? its been busting my brain for days now.