Re: Calling globals from db queries
| From: | Wico de Leeuw | Date: | Mon, 04 Sep 2000 12:41:45 +0000 |
| Subject: | Re: Calling globals from db queries | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-15114@lists.php.net to get a copy of this message | ||
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, expectingYou 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