I'm getting an error trying to fetch data from my database, but I'm not sure where. There error comes from the 2nd line, I think. As the code is, I get a blank page, and if I remove the 2nd or die it displays the page but won't echo anything from the DB. It's connected to the DB no problem. I've tried both mysql_fetch_array and mysql_fetch_assoc.
If it matters, PHP version is 5.2 and MYSQL is 5.5.23
Any help, or at least a point in the right direction, would be greatly appreciated.
If it matters, PHP version is 5.2 and MYSQL is 5.5.23
Any help, or at least a point in the right direction, would be greatly appreciated.
$stats_get = mysql_query("SELECT * FROM stats WHERE id ='.#_SESSION[uid].'") or die(mysql_error()); $stats = mysql_fetch_array($stats_get) or die(mysql_error());