Remove the '' around the 1.
----- Original Message -----
From: "Chris Doyle" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to