Thank Louie,
I still can't get it to work. Rather that put in the code with all the errors, I'll show you the code that works. The thing I want to change is that when the bid is 0.00 , the remarked section below is the bit I don't want to show.
Any help would be great!
Stuart
/////////////
<?
$db = mysql_connect("localhost", "gopile", "password");
mysql_select_db("database",$db);
$result = mysql_query("SELECT * FROM search WHERE ((title LIKE '%$keywords%') OR (term LIKE '%$keywords%') OR (description LIKE '%$keywords%') OR (url LIKE '%$keywords%')) ORDER BY bid DESC, time ASC",$db);
printf("<br><ol>");
if ($myrow = mysql_fetch_array($result))
do {printf("<font face=\"verdana\" size=\"2\"><li><b><a href=%s>%s</a></b></li><br>%s<br><i>%s</i></font>
<font face=\"verdana\" size=\"1\">
//this is the bit I need to be shown ONLY if the bid is higher than 0.00
(cost to advertiser = \$%s)</font><p>", $myrow["url"], $myrow["title"], $myrow["description"], $myrow["url"], $myrow["bid"]);}
//this is the end of the bit to be be shown ONLY if the bid is higher than 0.00
while ($myrow = mysql_fetch_array($result));
else {printf ("Error");}
printf ("</ol>");
?>