Hi,
Thanks for you help. I tried putting the statement in my query as well, so that runs first:
$query=mysql_query("select *, DATE_FORMAT(appeared, '%W %e %M %Y') as formatted_date from cms_stories where section like '%$section%' AND ( headline LIKE '%$searchstring%' OR body_text LIKE '%$searchstring%' )") or die(mysql_error());
echo "<table width=\"100%\" border=0 bgcolor=\"#cccccc\" cellpadding=1 cellspacing=1>\n";
echo "<tr> <th><DIV ALIGN=\"LEFT\">Type of Story</div></th>
<th><DIV ALIGN=\"LEFT\">Appeared in Newspaper</div></th>
<th><DIV ALIGN=\"LEFT\">Headline</div></th>
<th><DIV ALIGN=\"LEFT\">Read Story</div></th> </tr>";
// If no record!!;
if ($searchstring <= 0) {
echo("No results!");
}
But still get the same problem?
Thanks