[PHP] Error: Supplied argument is not a valid MySQL result resource

2001-05-24 Thread Internaut

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]




[PHP] Variable Passing

2001-05-22 Thread Internaut

Hello

Please could anyone tell me which part of the ini file I need to modify to
allow me to pass variables from one form to another.

Regards
Internaut



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