Re: Passing parameters

From: Date: Fri, 15 Mar 2002 19:55:21 +0000
Subject: Re: Passing parameters
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88696@lists.php.net to get a copy of this message
On Fri, 15 Mar 2002, Morten Nielsen wrote: > I have a php file where a make a lookup in a data base. I store the result > in a variable call $qid. > I then have an include statement of another file where I need the data from > $qid. Can anybody tell me how I get the data. If it was in the global context in the first file, it will likewise be available in the global context in the second file. Just pretend it's one big PHP file. If the variable was local to a function, you have to either make it global in scope, or pass it in and out of the function(s). miguel

« previous php.general (#88696) next »