在php数组中显示单词present而不是日期

Good day,

I am fairly new with PHP and I cannot figure out how to get it working. I had googled for solution but not found what I want.

I want to have a present checkbox added to my form. which i was able to do. i can either save it as a date or the word present but the problem is when i want to display the date on this format date('F j, Y', strtotime ) the value PRESENT which is save in my DB is showing July 1 1970 ( which i believe is the default for 0000-00-00 ).

NOTE: i use varchar to get both date and the value present save in the DB using the same column

my question now is there a way to display the word PRESENT and display the date('F j, Y', strtotime ) at the same time on my table?

just like the date option in jobstreet where you can display both date and the word present?

any help is much appreciated.

thanks.

Try this way

if ($value === 'PRESENT') 
    echo date('F j, Y');
else 
    echo date('F j, Y', strtotime('your time') );

EDIT:

Then do it simply

 if ($value === 'PRESENT') 
        echo $value;
    else 
        echo date('F j, Y', strtotime('your time') );

thanks for all your comments guys

i was able to figure out using all your answers and suggestion.

 if ($row ['LDATE'] == 'PRESENT') 
   echo 'PRESENT'; 
 else { 
   echo date('F j, Y', strtotime($row ['LDATE'])); }

here is the code i use.