Re: baffled :<:<

From: Date: Tue, 17 Apr 2001 06:08:17 +0000
Subject: Re: baffled :<:<
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-48900@lists.php.net to get a copy of this message
> $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

« previous php.general (#48900) next »