Re: global vars are not working

From: Date: Sat, 26 Apr 2003 22:48:46 +0000
Subject: Re: global vars are not working
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-27384@lists.php.net to get a copy of this message
RTFM! http://www.php.net/manual/en/security.registerglobals.php Robert Williams wrote:
I am upgrading from PHP 4.03 to PHP 4.22 and I can not get global vars to work now. I have my php web apps on another machine and they work. But when I move them to the new machine, global vars are all blank. function display_stuff() { global $id, $row_work; $query_work = "SELECT id, office_name,"
           . " FROM work"
           . " WHERE id = $id;";
returns the following web page: SELECT id, office_name FROM work WHERE id = ; notice "id' has no value. Is there a trick to get this working? Thanks! P.S. I cut out some fields in the query
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.db (#27384) next »