global vars are not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux