RE: [PHP] Calling globals from db queries

From: Date: Mon, 04 Sep 2000 12:50:26 +0000
Subject: RE: [PHP] Calling globals from db queries
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-15117@lists.php.net to get a copy of this message
This produces the same error M@ > -----Original Message----- > From: Wico de Leeuw [mailto:wico@cnh.nl] > Sent: Monday, September 04, 2000 01:42 > To: Matt Williams; php-general@lists.php.net > Subject: Re: [PHP] Calling globals from db queries > > > At 13:43 4-9-2000 +0100, Matt Williams wrote: > >Hi > > > >How can I call a global variable inside a function where the variable is > >part of a result array from a mysql query. > >I've tried > > > >global $result['column_name']; but I keep getting parse error, expecting > > You only gotta make the global > Global $result; > > use $result[column_name']; > > Greetz, > > Wico > > >`'{'' > > > >Many thanks > > > >M@ > > > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > >For additional commands, e-mail: php-general-help@lists.php.net > >To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#15117) next »