Quote:
Originally posted by john.eovie
Ok, when I run
...snip...
in place of the standard leaderboard_q code, I get no records returned.
|
Dang, I dunno what the problem could be. Aside from a few different variable names, that is the exact query I am using, and it works well. Could you post the ensuing while loop to go along with it that you are trying? Maybe something is going wonky there...?
The only other thing I can think of is to try it with hardcoded variables that you know exist in your database. Like, use 'tetris' instead of $gamename and "10" instead of $top_number and so on. Just to eliminate all possible problems.
edit: Actually, just try entering the query directly into mysql on your site and see what it returns. That is usually the best way to try things out... let me know if it is returning something weird.