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.
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php