RE: [PHP-DB] values across functions

From: Date: Thu, 06 Jun 2002 01:21:40 +0000
Subject: RE: [PHP-DB] values across functions
Groups: php.db 
Request: Send a blank email to php-db+get-19632@lists.php.net to get a copy of this message
have you declared the variables as global int eh function? eg function foo($bar) { global $this, $that, $theOther; [...] } that way $this, $that and $theOther variables are available everywhere HTH Beau // -----Original Message----- // From: James Kupernik [mailto:kupernik@bcn.net] // Sent: Wednesday, 5 June 2002 9:35 PM // To: php-db@lists.php.net // Subject: [PHP-DB] values across functions // // // I have a file, it's a shopping cart. Currently is contains // all the fuctions // required in the cart, including the shipping and billing // form. It won't take // the values from the shipping form and use them in the functions that // calculate the tax and S & H. Why would this be? I've gotten // other variables // to transfer, just not these. // // Thanks // // // // -- // PHP Database Mailing List (http://www.php.net/) // To unsubscribe, visit: http://www.php.net/unsub.php //

« previous php.db (#19632) next »