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> Quote Link to comment Share on other sites More sharing options...
discomatt Posted June 4, 2008 Share Posted June 4, 2008 if ( $dob === NULL ) Quote Link to comment Share on other sites More sharing options...
Clinton Posted June 4, 2008 Author Share Posted June 4, 2008 Thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.