Menu
Hi all,
Can anyone show me where I am going wrong here.
[code=php]
<?php
if (strlen($row_accomm[‘pic’]) > 0 {
echo $row_accomm[‘pic’];
} else {
echo “awaiting photo”;
}
?>
All I am trying to do is test the field ‘pic’ for a string, if there is one show the pic underlying the string.
If field is empty show the message.
Can anyone help please.
Kind regards
Dereck