Re: Weird Problem

From: Date: Tue, 29 Jul 2003 21:02:52 +0000
Subject: Re: Weird Problem
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-157434@lists.php.net to get a copy of this message
* Thus wrote DvDmanDT (dvdmandt@telia.com): > Isn't there a known problem with variables and included files? Like you have > to create $result in the first file, or something... Just try to have it all > in one file... Also, change "mysql_fetch_row($result);" to > "mysql_fetch_row($result) or print(mysql_error());"... Something also tells > me you are using mysql_fetch_row... Why not array? You should try to just > switch between them and try once... I didn't notice it at first... > mysql_fetch_array($result) is what I would use... Will probably return same > thing, but who knows? For the record, there are no problems with variables and include files. Include files are expanded into the parent file as if they file is in the file that included it. Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#157434) next »