Okay, so I’m using a simple SELECT FROM query to get a name, should be simple, right?
[code=php]
$author=mysql_query(“SELECT username FROM users WHERE id=’$aid'”);
echo($author);
Yes, $aid is set. Now, I’ve run this same tibit of code in phpMyAdmin, and it works, but in my script I get this:
[QUOTE]
Resource id #6Resource id #7Resource id #8Resource id #9Resource id #10Resource id #11Resource id #12Resource id #13Resource id #14Resource id #15Resource id #16Resource id #17Resource id #18Resource id #19Resource id #20Resource id #21
I don’t even understand that, let alone know what it means… can anyone help me here? I want $author to have the username.