I have an html table with repeating rows in which I want to display a checkmark if the record contains "%clickserve%" in the field $row_rs_link['Intro'] and nothing if it does not. The code works as expected if I change LIKE to == or <>, but php throws a unexpected T_STRING error when I use LIKE. What is the correct syntax?
Here's my code:
Thanks.
Here's my code:
Code:
<?php
if($row_rs_recipe['Recipe_Intro'] LIKE "%clickserve%") echo '<img name="Checkmark" src="../images/checkmark.gif" alt="Yes">';
else echo '<img name="Spacer" src="../images/spacer.gif" alt="No">';
?>
Thanks.