ragazzi ma voi trovate qualche errore in questa riga di codice?
Codice PHP:
$query = "update PHPAUCTIONXL_auctions set current_bid=$next_bid, starts=$auctiondate,ends=$auctionends where id=\"$id\"";
if (!mysql_query($query))
{
MySQLError($query);
exit;
}
non riesco a capire se mi sfugge qualcosa ma il problema che mi restituisce questo errore quando lo eseguo
codice:
update PHPAUCTIONXL_auctions set current_bid=01000, starts=2010-07-02 16:14:29,ends=2010-07-03 16:14:29 where id="e84a69c8db58fcfe7edc20912e738acb"
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '16:14:29,ends=2010-07-03 16:14:29 where id="e84a69c8db58fcfe7edc20912e738acb"' at line 1