Jump to content

[SOLVED] NULL Help


Clinton

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.