I'm being a bit thick but how can I incorporate this bit of code in to the do while loop below?
Basically I am wanting to exclude any records that have a category = coming soon, from being printed out on screen
$category != "COMING SOON";
if ($found>0) {
print("<table width=\"395\" border=0 cellpadding=3 cellspacing=1>");
do {
$description=$row["description"];
$shortdesc=substr($description, 0, 45);
$shortdesc.="....";
print("<tr><td width=\"310\" class=\"searchlist\"><a class=\"mainbodytext\" href=\"description.php?prodid=".$row["ID"]."\">".$row["make"]."<br>".$shortdesc."</a></td><td width=\"55\" align=left class=\"searchlist\"><b>£".$row["price"]."</b></td><td width=\"30\" class=\"searchlist\" align=\"center\"><a href=\"description.php?prodid=".$row["ID"]."\"><img src=\"images/cart.gif\" border=0></a></td></tr>");
}
while ($row=mysql_fetch_array($result));
print("</table>");
}
Or would it be easier to excluse at the SQL query - if so how would I go about excluding the category coming soon???