Results 1 to 10 of 10

Thread: Dont know what im doing wrong...

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    448

    Dont know what im doing wrong...

    Im not sure what im doing wrong, it keeps returning Select Failed! every time. Can you help me fix the problem thanks!
    PHP Code:
    <? 
           mysql_connect("localhost","username","password") 
                or die("Unable to connect to SQL server"); 
            mysql_select_db("jokes") 
                or die("Unable to select database");
    $query = "SELECT * FROM jokes";

    $joke = mysql_query($query) or die("Select Failed!");
    ?>
    <?php echo $joke['JokeText'];?>
    Last edited by Muk108; Jan 6th, 2003 at 10:38 PM.

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