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! |
Quote:
Read all about it here (includes examples): http://www.php.net/manual/en/function.mysql-query.php http://www.php.net/manual/en/functio...-fetch-row.php |
yayyy I got it! For those interested, I'll be posting the code I have that made it work shortly. Thanks for your help, Hko!
:D |
All times are GMT -5. The time now is 05:40 AM. |