RE: [PHP] undefined variable when using if ($var) {}

2002-03-25 Thread Darren Gamble
Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: Martha S [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 9:44 AM To: [EMAIL PROTECTED] Subject: [PHP] undefined variable when using if ($var) {} I'm rather new to PHP, so

[PHP] undefined variable when using if ($var) {}

2002-03-25 Thread Martha S
I'm rather new to PHP, so this should be fairly easy to answer. I checked the manual and FAQ already. I'm using the following code, and I get the following message if $id has nothing in the var (i have it set to a default of type int, not null in mysql). Is there a way around this or something I