Created a new table, where there will be a list of users and their points. I make a record in the table in this way
global $DB; $DB->Query("update rub_guess_photo set POINTS=POINTS+0.02 where USER_ID='$userid' limit 1;"); I derive in this way:
global $DB; $DB->Query("SELECT USER_ID FROM rub_guess_photo ORDER BY POINTS DESC LIMIT 10"); while ($row = mysql_fetch_array($sql)) { print_r($row[1]); } But the record for some reason is not added and not displayed. I manually created an entry in this table, tried to print - empty. Where is the error in the first and second case?
pole3. And remove the semicolon at the end of the first query - systemiv