Hello

I am in the process of learning php by following the examples out of the
book, as I try to run this script an error message appears with the
following:

Warning: Supplied argument is not a valid MySQL result resource in
/home/httpd/vhtdocs/tosh/php/show_more_db.php on line 10

Here is the script:

<?php
//show_more_db.php

include "./common_db.inc";
$link_id = db_connect('sample_db');
$result = mysql_query("SELECT * FROM user", $link_id);
while($query_data = mysql_fetch_row($result)) {
echo "'",$query_data[1],"' is also known as ",$query_data[3],"<P>";
}

?>

Please can you advise further, kind regards Tony



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to