global vars are not working

From: Date: Sat, 26 Apr 2003 21:48:01 +0000
Subject: global vars are not working
Groups: php.db 
Request: Send a blank email to php-db+get-27382@lists.php.net to get a copy of this message
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

« previous php.db (#27382) next »