Oper
Posts: 1195
|
Posted: 05/26/2011, 8:23 AM |
|
DBConnection1.Execute ("UPDATE orders SET Despatched=1, item_despatched = '"& MYSQLDATE(orders1.Despatched_Date.Value) &"' where cart_session_id='"& Request.QueryString("cartID") &"'")
Function MySQLDate(fecha)
MySQLDate = CCFormatDate(fecha,array("yyyy","-","mm","-","dd" ))
End Function
i dont has to explain you why. :)
we decided to create a fucntion casue we used so many time and quick to doit this way
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)
http://www.PremiumWebTemplate.com
Affiliation Web Site Templates
Please do backup first |