Clinton Posted June 4, 2008 Share Posted June 4, 2008 This says if DOB is 0000-00-00 then ECHO x ELSE echo x. How do I get it to say IF DOB is 0000-00-00 then echo x ELSE IF dob is NULL then echo x ELSE echo x? <tr> <td align='right'> Date of Birth: </td><td><input type="text" name="dob" value="<? if ($row{'dob'}=='0000-00-00') echo " "; else echo date('n/j/Y',strtotime($row{'dob'})); ?>"></td> </tr> Link to comment https://forums.phpfreaks.com/topic/108737-solved-null-help/ Share on other sites More sharing options...
discomatt Posted June 4, 2008 Share Posted June 4, 2008 if ( $dob === NULL ) Link to comment https://forums.phpfreaks.com/topic/108737-solved-null-help/#findComment-557595 Share on other sites More sharing options...
Clinton Posted June 4, 2008 Author Share Posted June 4, 2008 Thank you! Link to comment https://forums.phpfreaks.com/topic/108737-solved-null-help/#findComment-557610 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.