Hi all
I want to specify an OR condition in an if statement. Can anyone please tell me how this can be done.
I've tried this but it does not work
[PHP]<? if (($add!=1) or (!empty($row["Bkg_Renewal_Dt "])))
{
echo '<tr>';
echo '<td class="hr">';ec ho htmlspecialchar s("Renewal Date")." " ;echo '</td>';?>
<td class="dr"><inp ut type="text" readonly name="Bkg_Renew al_Dt" value="<? echo str_replace('"' , '"', trim($row["Bkg_Renewal_Dt "])) ?>"><input type="button" value="Cal" onclick="displa yCalendar(docum ent.forms[0].Bkg_Renewal_Dt ,'yyyy-mm-dd',this)">
<? echo '</td>';
echo '</tr>';
} ?>[/PHP]
Thanks
I want to specify an OR condition in an if statement. Can anyone please tell me how this can be done.
I've tried this but it does not work
[PHP]<? if (($add!=1) or (!empty($row["Bkg_Renewal_Dt "])))
{
echo '<tr>';
echo '<td class="hr">';ec ho htmlspecialchar s("Renewal Date")." " ;echo '</td>';?>
<td class="dr"><inp ut type="text" readonly name="Bkg_Renew al_Dt" value="<? echo str_replace('"' , '"', trim($row["Bkg_Renewal_Dt "])) ?>"><input type="button" value="Cal" onclick="displa yCalendar(docum ent.forms[0].Bkg_Renewal_Dt ,'yyyy-mm-dd',this)">
<? echo '</td>';
echo '</tr>';
} ?>[/PHP]
Thanks
Comment