hi,
I'm having another problem with this. For some reason, it is outputting 'Resource id #4' as well as any valid results, even when there are no results to display.
$query = mysql_query("SELECT id, item FROM item WHERE auction_end BETWEEN NOW() AND DATE_ADD(NOW(),INTERVAL 5 MINUTE)",$mysql_access) or die ("SQL error: ".mysql_error());
if ($query)
while($row = mysql_fetch_row($query))
$result = $row[1].$result.", ";
else
$result = "no results ending soon..";
Thanks,
Asa