|
-
Aug 4th, 2004, 06:02 PM
#1
Thread Starter
Addicted Member
Can't get data from DB [Resolved]
PHP Code:
echo "<font face=tahoma size=1 color=#FFFFFF>";
$un=mysql_query("SELECT username FROM udb WHERE rank='Admin'") or die(mysql_error());
echo $un;
All I guet is "Resource id #3", and I don't know what that means, nor have I been able to find a solution for it.
Last edited by R.a.B.B.i.T; Aug 5th, 2004 at 11:49 PM.
-
Aug 4th, 2004, 06:21 PM
#2
Frenzied Member
After doing the query you need to take data out of it. Read this page which walks you through the mysql_result() function.
Have I helped you? Please Rate my posts. 
-
Aug 5th, 2004, 11:49 PM
#3
Thread Starter
Addicted Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|