> $db = include"connect.inc";
includes do not return anything useful, so this is a bogus statement.
> $foo = "SELECT * FROM 6pci WHERE card='$card' ORDER BY card";
>
> $result = mysql_query($foo,$db);
An include certainly cannot return a database handle. Included files
operate in the same variable scope as the script doing the inclusion. So
simply set $db in your connect.inc file and it will automatically be
available to you after the include.
-Rasmus
--
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]