gsc123
Programmer
- Jan 24, 2008
- 197
Function pPriceMaxBidNotMine()
'get the highest bid for this item not belonging to me
sql = "SELECT TOP 1 bidhistory.bidAmount AS price FROM bidhistory WHERE (((bidhistory.idProduct)="&Session("pIdProduct")&") AND ((bidhistory.idCustomerBid) <> "&session("idcustomer")&")) ORDER BY bidhistory.bidAmount DESC "
set rsMax = conntemp.execute(sql)
pPriceMaxBidNotMine = rsMax("price")
rsMax = Nothing
End Function
Response.write " my bid = "&pPriceMaxBidNotMine()
'get the highest bid for this item not belonging to me
sql = "SELECT TOP 1 bidhistory.bidAmount AS price FROM bidhistory WHERE (((bidhistory.idProduct)="&Session("pIdProduct")&") AND ((bidhistory.idCustomerBid) <> "&session("idcustomer")&")) ORDER BY bidhistory.bidAmount DESC "
set rsMax = conntemp.execute(sql)
pPriceMaxBidNotMine = rsMax("price")
rsMax = Nothing
End Function
Response.write " my bid = "&pPriceMaxBidNotMine()