RE: [PHP] if then else?

From: Date: Sun, 19 Aug 2001 05:07:28 +0000
Subject: RE: [PHP] if then else?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63353@lists.php.net to get a copy of this message
btw...this is the code i'm trying........ Please keep the laughter to a minimum...ah heck with it...laugh all you want...its good for ya <?php if ($prof_exp_1 = "not null") { ?> <H4>Professional Experience: </H4><li> <?php printf(mysql_result($result,0,"prof_exp_1")); ?><br> <?php } else if ($prof_exp_1 = "null") {?> This field is empty <?php } else {?> output for users with a variable other than value1 or value2 <?php }; ?> <?php if ($prof_exp_2 = "not null") { ?> <li> <?php printf(mysql_result($result,0,"prof_exp_2")); ?><br> <?php } else if ($prof_exp_1 = "null") {?> This field is empty <?php } else {?> output for users with a variable other than value1 or value2 <?php }; ?>

« previous php.general (#63353) next »