I have a table with one double(5,2) field that contains a bid that is input by users. I need to get just the record that has the highest bid. How do I write the query?
$getiteminfo = "SELECT bidamount FROM bids WHERE
$getitemsrec = mysql_db_query($dbname, $getiteminfo);
while ($qryactive = mysql_fetch_array($getitemsrec))
{
echo $qryactive[bidamount]."<br>";
}
The line above: echo $qryactive[bidamount]."<br>";
should show only one number, the top bid.
Mr. Grammar