"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
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:
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
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
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
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
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
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
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
9 matches
Mail list logo