Codice:
Errori:Codice PHP:
$DBHOST = 'localhost';
$DBUSER = 'tryhere';
$DBPW = '*';
$DBNAME = 'test';
$connection = mysql_pconnect("$DBHOST","$DBUSER","$DBPW")
or die ("Couldn't connect to server.");
$db = mysql_select_db("$DBNAME", $connection)
or die("Couldn't select database.");
$query = mysql_query('show tables from nome_database');
while ($row=[B]mysql_fetch_row($query)[/B]) {
echo $row[0];
}
Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given