MySQL Returning very strange Values in PHP Script
Hello!
I've begun the ardous trek of programming my own forum... completely in SQL
And the problem arises when i try to print the values of a table. Check the code below:
$newsupostusername1=mysql_query("SELECT SUPERUSER FROM SUPERUSERPOSTS ORDER BY TIMEPOSTED DESC LIMIT 1");
$newsuposttime1=mysql_query("SELECT TIMEPOSTED FROM SUPERUSERPOSTS ORDER BY TIMEPOSTED DESC LIMIT 1");
$newsupostname1=mysql_query("SELECT POSTNAME FROM SUPERUSERPOSTS ORDER BY TIMEPOSTED DESC LIMIT 1");
$newsupost1=mysql_query("SELECT POST FROM SUPERUSERPOSTS ORDER BY TIMEPOSTED DESC LIMIT 1");
Now, One would expect this to work. But oh no, not today. On my page, this returns:
POST BY USER Resource id #7 AT Resource id #8
POST TITLE: Resource id #9.
Resource id #10
Any ideas?
Thanks in advance!
|