Trying to figure out how to search for a character in my result string (want to find the character: X) and if it is X then show a sentence for it:
my current code:
$id = $row["productsID"];
$title = $row["productsTitle"];
$price = $row["productsPrice"];
$desc = $row["productsDesc"];
$cat = $row["productsCat"];
$cat = str_replace(" all","",$cat);
//<img src='img/spacer.gif' width='1' height='10' border='0' alt=''><br>*Please allow 6 to 8 weeks for delivery.<br>
$foo = $cat;
$foo = ucwords($foo);
$row_color = ($row_count % 2) ? $color1 : $color2;
echo "";
So basically, want to search $id for product that has "X" in it, and if it does, then echo "a sentence"
examples of product codes:
X102
X1102
A0233
E0255
CD-2263