I have a database in which only some of the records have a photo associated with them. If the photo exists, I want to display it. If there is no photo, I don't want to display anything.
My images are located in the folder called "../images/recipes/320/". Each image is named according to the...
Thanks! This worked like a charm.
<?php
if(strpos ($row_rs_recipe['Recipe_Intro'], "clickserve") !== FALSE) echo '<img name="Checkmark" src="../images/checkmark.gif" alt="Yes">';
else echo '<img name="Spacer" src="../images/spacer.gif" alt="No">';
?>
Now, how do I expand this to look for...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.