[thelist] Remedial PHP - MySQL
Jay Blanchard
jay.blanchard at niicommunications.com
Wed Feb 16 10:38:15 CST 2005
[snip]
<?php
require ("myincludefile.php");
if (!($link=mysql_connect($host, $user, $password))) {
echo("Crap - no connection!");
}
$result = mysql_list_tables($database);
if (!$result) {
echo mysql_error() . "\n";
exit();
}
while ($row = mysql_fetch_row($result)) {
echo "Table: $row[0]\n";
}
?>
<hr>
As output I get my nice shiny <hr>.
That's all ... no other output ... no error messages.
Any idea what could be up?
[/snip]
What is the value in $database ?
More information about the thelist
mailing list