-
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!!
-
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()