I am making a basic forum script, and i am trying to get the username of the latest member that has signed up.
I've got the MySQL 'members' table set up, with the simple structure:
ID | USERNAME | PASSWORD | EMAIL ect...
But when i try to get the latest 'USERNAME' it just displays:
Resource id #11
The code im using to show the data is:
$var['stats']['newest_member'] = @mysql_query("SELECT 'USERNAME' FROM members ORDER BY 'ID' DESC LIMIT 0,1");
Any help on how i can display the 'USERNAME' field of the very last row in the table?