[thelist] Remedial PHP - MySQL

Luther, Ron ron.luther at hp.com
Wed Feb 16 10:24:07 CST 2005


Jay Blanchard helped out by suggesting some code:

Hi Jay,

Here is how I have mangled the nice code you sent:

<?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?


Thanks!!

RonL.


More information about the thelist mailing list