December 23rd, 2002, 08:01 PM
Join Date: Dec 2002
Time spent in forums: < 1 sec
Reputation Power: 0
Undefined Variable in PHP problem.
i know there's another article on this but this one is slightly different as mine doesn't involve database.
my code looks like the one below.
if($id=='' || $id=='home')
this code is the only PHP code on the page. but it keeps giving me
"Notice: Undefined variable: id in c:\program files\apache group\apache\htdocs\index.php on line XX"
code on anywhere that has that code. it works normal with PHP 4.0.2 but the error message appears when using PHP 4.2.3
please do help.
Last edited by goldfries : December 23rd, 2002 at 09:32 PM.