$statData = mysql_query("SELECT * FROM `netstats` WHERE `player` = $profileIGN");
if ($statData == false) {
echo 'This user has not been recorded yet :(';
} else {
$broken = mysql_result($statData, 0, 'broken');
echo "This player has broken $broken blocks, <br>";
}
Having connected to the database selected my database, and even run some other queries (which were successful) I run this code.$statData is ALWAYS set to false!
If you really want me to I could post a picture of the database, I clearly see that $profileIGN has been set to bbqr0ast, and that a entry in the MySQL table is there.
I even tried changing the `player` part to ID and changing $profileIGN to 1, that worked fine...
I'm guessing MySQL doesn't like my string, anyone know why?


Sign In
Create Account


Back to top









