Help
-
Search
-
Members
-
Calendar
Full Version:
Notice: Use Of Undefined Constant Ban_id - Assumed 'ban_id' In /www/zxq.net/c/a/r/carolinagirlpearls/htdocs/banners/index.php On Line 12
Zymic Webmaster Forums
>
Web Design & Development
>
Server Side Scripting
>
PHP
joroni
Oct 29 2009, 06:07 AM
Hi guys, can you please help me on this. Why it's writing on the top my php code. It's working on my localhost using xampp
QUOTE(joroni @ Oct 29 2009, 06:05 AM)
Hi guys, can you please help me on this. Why it's writing on the top my php code. It's working on my localhost using xampp
Also this too
Notice: Undefined index: p in /www/zxq.net/c/a/r/carolinagirlpearls/htdocs/testimonial/index.php on line 150
swordz
Oct 29 2009, 11:55 AM
Well, your local host has notice errors turned off then.
Error one: Somewhere (try line 12), you've got written $var[ban id] which should be $var['ban id'].
Error two: Somewhere (try line 150), you've got written $var['p'] when it doesn't exist.
Swordz
joroni
Oct 30 2009, 02:17 AM
QUOTE(swordz @ Oct 29 2009, 11:55 AM)
Well, your local host has notice errors turned off then.
Error one: Somewhere (try line 12), you've got written $var[ban id] which should be $var['ban id'].
Error two: Somewhere (try line 150), you've got written $var['p'] when it doesn't exist.
Swordz
Oh I see, I'll figure that out and get back to you. Thank you! Be back in a while
joroni
Oct 30 2009, 03:29 AM
QUOTE(joroni @ Oct 30 2009, 02:17 AM)
Oh I see, I'll figure that out and get back to you. Thank you! Be back in a while
Hi Swordz, thank you very much! It works! I'm a newbie on php.
Can I enable my Notice Error on my localhost? Is it necessary?
Thanks a lot!
swordz
Oct 30 2009, 10:35 AM
It's not necessary but it does enforce better programming.
To turn it on, find your php.ini, then ensure you have a line that reads:
error_reporting = E_ALL
You should have an error_reporting line already - this replaces that.
Swordz
joroni
Oct 30 2009, 04:39 PM
QUOTE(swordz @ Oct 30 2009, 10:35 AM)
It's not necessary but it does enforce better programming.
To turn it on, find your php.ini, then ensure you have a line that reads:
error_reporting = E_ALL
You should have an error_reporting line already - this replaces that.
Swordz
Thanks Swordz! Big help...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here
.
Invision Power Board © 2001-2010
Invision Power Services, Inc.