Results 1 to 2 of 2

Thread: MySQL Doesn´t show

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2005
    Posts
    87

    Question MySQL Doesn´t show

    Hi! This is my problem:

    I have this index.php:
    PHP Code:
    <html>
    <body>

    <?php
    $linkp
    >
    $link mysql_connect("IP","db","password");
    mysql_select_db("DB",$link);


    echo 
    "Hola Mundo ";
    echo 
    mysql_query("SELECT * FROM 'servers'",$link)."<br>";
    ?>

    <html>
    <body>
    The problem is that this script only print "Hola Mundo". And I want to print "Hola Mundo" and the query...

    I hope you can help me with this one!

    Thanks!!

  2. #2
    Lively Member {yak}'s Avatar
    Join Date
    Aug 2005
    Posts
    119

    Re: MySQL Doesn´t show

    You want to print the result set of your query? In that case, you have to loop through the result set and print the records. The manual has some examples:
    mysql_query()
    {yak}

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