Re: [php] Varible declaration

From: Date: Thu, 22 Mar 2001 21:02:06 +0000
Subject: Re: [php] Varible declaration
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-45407@lists.php.net to get a copy of this message
thats good, in the future a code snippet helps ----- Original Message ----- From: "Chris Doyle" <gaur@planetveggie.com> To: "PHP List" <php-general@lists.php.net> Sent: Friday, March 23, 2001 11:12 PM Subject: Re: [PHP] [php] Varible declaration > no problem i have got it now.. > needed to declare it global. > > ----- Original Message ----- > From: "Chris Anderson" <chrisderson@ameritech.net> > To: "Chris Doyle" <gaur@planetveggie.com>; "PHP List" > <php-general@lists.php.net> > Sent: Friday, March 23, 2001 6:40 AM > Subject: Re: [PHP] [php] Varible declaration > > > > Remove the '' around the 1. > > ----- Original Message ----- > > From: "Chris Doyle" <gaur@planetveggie.com> > > To: "PHP List" <php-general@lists.php.net> > > Sent: Friday, March 23, 2001 9:44 PM > > Subject: [PHP] [php] Varible declaration > > > > > > Hi, > > > > when I declare the varible $cid like this > "http://myserver/index.php?cid=1" > > it works fine, but when i declare it in the code like this > > $cid = '1'; > > > > it doesn't work... is this maybe because of the level i declare the > varible? > > how to i declare it the same as > > "http://myserver/index.php?cid=1" but in > > my php code... > > > > PS. > > I use this varible in a function that is called by a function wich is > > included and so on... it is rather far down. > > > > Thanks > > Gaur > > _______________________________ > > > > This email may contain confidential and/or privileged information for the > > sole use of the intended recipient. Any review or distribution by others > is > > strictly prohibited. If you have received this email in error, please > > contact the sender and delete all copies. Opinions, conclusions or other > > information expressed or contained in this email are not given or endorsed > > by the sender unless otherwise affirmed independently by the sender. > > > > _________________________________ > > > > > > > > > > -- > > 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 (#45407) next »