...I'm really getting sick of this.
Code:
<?php
$passy = $_GET[\"p\"];
if ( $passy == \"blindoff\" ) {
echo $admin;
}
?>
Error:
Notice: Undefined index: p in (dir)/admin.php on line 28
'
($admin is defined earlier)
That is simple, is it not? Why doesn't it work?! It worked fine beofre I upgraded PHP!
Busy posted this at 21:24 — 2nd May 2006.
He has: 6,151 posts
Joined: May 2001
It's not an error, it's a notice, one less than a warning.
You have error reporting to all set
If you want to keep error reporting to all, you will need to do something like this:
$_GET['p'] = isset($_GET['p']) ? $_GET['p'] : '';
to get rid of the notice
You can change the error reporting in your php.ini file which is in your windows folder, has comments on the section to what to change to.
ptpspptps0 posted this at 22:30 — 2nd May 2006.
He has: 52 posts
Joined: Apr 2006
Oh. Well, notices are ugly. I'm going to go disable them.
Thanks.
Again.
And "Modrator" is spelld rong.
Busy posted this at 09:22 — 3rd May 2006.
He has: 6,151 posts
Joined: May 2001
no it spelld write
OldWelshGuy posted this at 09:28 — 3rd May 2006.
They have: 64 posts
Joined: Apr 2006
Which mods do you rate? (excuse my ignorance)
DaveyBoy posted this at 09:41 — 3rd May 2006.
They have: 453 posts
Joined: Feb 2003
It's the admins way of being funny cos Busy can't spell
OldWelshGuy posted this at 09:57 — 3rd May 2006.
They have: 64 posts
Joined: Apr 2006
I see, Busy seems to be a man after my own heart I have trubble with the old spolling as wel
Internet Marketing Consultancy - My SEO Agony Uncle Blog
JeevesBond posted this at 19:12 — 3rd May 2006.
He has: 3,956 posts
Joined: Jun 2002
Yarrr, whereas all the adminz spellin is prefect innit.
ptpspptps0 posted this at 23:53 — 3rd May 2006.
He has: 52 posts
Joined: Apr 2006
ya damnstr aight omnfgloal roflmao
demonhale posted this at 04:58 — 4th May 2006.
He has: 3,278 posts
Joined: May 2005
and I cant spell that good either... uhm.... sometimes... tee hee!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.