Techware Labs Header

Forums have moved

See this announcement for more details, or just go directly there.

Prev Previous Post   Next Post Next
  #1  
Old 06-02-2002, 05:46 AM
TheRogue
 
Posts: n/a
Default php programming help needed :-)

atm im learning php from this tutorial; http://hotwired.lycos.com/webmonkey/...tw=programming

in the 2nd code listing it checks to see if the variable $id exists using if ($id), when i try and run this it errors sayin id is an undefined variable (it doesn't exist), the only way to fix the error is to define it ( eg $id = 0 ), which would lost the point in the whole if statement!

the if ($id) checks if the id variable has been set (which would of been from the command line eg test.php?id=1 )

anyone know whats wrong with this?
Reply With Quote
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:05 AM. Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum style by ForumMonkeys.