Re: [PHP] Undefined variable

2001-02-03 Thread Steve Werby
"Dundee (Roland)" <[EMAIL PROTECTED]> wrote: > When creating a page(php) on Win2000 I get alot of 'Undefined variable' > error messages, but there are no errors at all running the same page on a > apache server. Is the variable a user defined variable? If so, my guess is the error reporting leve

RE: [PHP] Undefined variable

2001-02-04 Thread PHPBeginner.com
try setting error_reporting(0) in PHP.ini Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Dundee (Roland) [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 04, 2001 5:35 AM To:

Re: [PHP] Undefined Variable

2001-03-18 Thread David Robley
On Sun, 18 Mar 2001 00:13, Jorge Alvarez wrote: > Hi there, > > I get this error every time I try to use a variable that has not been > declared. Is this new to PHP4? I do not recall this error in the past, > echo $MYVAR echoed nothing if $MYVAR was not set but no error was > raised. > > How can I

RE: [PHP] Undefined variable

2001-10-19 Thread Boaz Yahav
it's a warning, not an error... you should check if it is set before you use it : If(IsSet($id)) { Do something... } Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From: Tshering Norbu [mailto:[EMAIL

Re: [PHP] Undefined variable

2001-10-19 Thread Dimitris Kossikidis
This should work ... if ( IsSet($id) ) { . sql statement }else{ . } - Original Message - From: "Tshering Norbu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 19, 2001 12:22 PM Subject: [PHP] Undefined variable > Dear list, > > I test the followi

Re: [PHP] "undefined variable view ..."

2001-08-26 Thread David Robley
On Mon, 27 Aug 2001 02:59, Wolfgang Schneider wrote: > Hi everybody, > can someone have a look at this bit of code please and help me out? > I am getting an error message when calling a php page containing the > code below, and the message reads: > > "Warning: Undefined index: view in > c:/bibelce

Re: [PHP] 'Undefined Variable' help...

2001-09-04 Thread Philip Olson
Hi Uchendu! Yes, this is very possible! Here are a few things that come to mind. There are of course many ways to do this : To check the existance of a variable, consider isset() as it checks for the existance of a variable : if (isset($HTTP_GET_VARS['images'])) Maybe set some default val

RE: [PHP] undefined variable when using if ($var) {}

2002-03-25 Thread Darren Gamble
Good day. What is this message that you get, that you don't want? A cursory glance of the code reveals two "else" statements attached to the same "if" statement. You should address that. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue

Re: [PHP] Undefined Variable in formular... what happens???

2001-09-18 Thread Philip Olson
Most likely it has to do with your error_reporting setting. See : http://uk.php.net/manual/en/phpdevel-errors.php#internal.e-notice http://uk.php.net/manual/en/features.error-handling.php Level E_NOTICE produces Warnings such as "Undefined Variable", so, doing the following : echo $ia