Re: help needed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Peter D wrote:
$result = mysql_query ( "SELECT * FROM 'high_score' ORDER BY score DESC LIMIT 10");

Single quotes are invalid around entity names, you should be using backticks to surround high_score.

You really should be checking the return value from mysql_query. It tells you if an error occurred, and you can then use mysql_error to get more details.

-Stut

--
http://stut.net/

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux