Hi there,
I am still getting the hang of PHP and am stuck. I have a recordset called workorderresult.
If the date value returns 0000-00-00 I need to print Still Avtive instead of 0000-00-00. Otherwise if any other value is returned besides that the print it. Here is what I have so far.... Where am I going wrong. Please help.
<?php
$comp = $row_workorderresult['completiondate'];
if (comp == date("Y-m-d",0000-00-00);{
echo "Still Active";
}
else {
echo $row_workorderresult['completiondate'];
}
?>
Can anyone help???
I am still getting the hang of PHP and am stuck. I have a recordset called workorderresult.
If the date value returns 0000-00-00 I need to print Still Avtive instead of 0000-00-00. Otherwise if any other value is returned besides that the print it. Here is what I have so far.... Where am I going wrong. Please help.
<?php
$comp = $row_workorderresult['completiondate'];
if (comp == date("Y-m-d",0000-00-00);{
echo "Still Active";
}
else {
echo $row_workorderresult['completiondate'];
}
?>
Can anyone help???