Results 1 to 3 of 3

Thread: Can't get data from DB [Resolved]

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2003
    Posts
    255

    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.

  2. #2
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    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.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2003
    Posts
    255
    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width