[PHP] is_null question

2002-07-12 Thread Matthew K. Gold
Hi Everyone, Here's my problem: I'd like to make the printing of some text dependent on whether or not a variable is null. In the following example, when $row[1] is null, what gets printed on the page is Email: . I'd like the script to not print Email: if row[1] is null. It looks like I

Re: [PHP] is_null question

2002-07-12 Thread Jason White
You can use: if($row[1]){print Email:$row[1];}else{print ;} Jason White - Original Message - From: Matthew K. Gold [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 12, 2002 9:23 PM Subject: [PHP] is_null question Hi Everyone, Here's my problem: I'd like to make

Re: [PHP] is_null question

2002-07-12 Thread Jason White
- Original Message - From: Jason White [EMAIL PROTECTED] To: Matthew K. Gold [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, July 12, 2002 9:28 PM Subject: Re: [PHP] is_null question You can use: if($row[1]){print Email:$row[1];}else{print ;} Jason White - Original Message