Changeset 1194 for trunk/unxsISP/interfaces/customer/purchase.c
- Timestamp:
- 02/17/10 16:17:29 (2 years ago)
- Files:
-
- 1 modified
-
trunk/unxsISP/interfaces/customer/purchase.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/unxsISP/interfaces/customer/purchase.c
r1192 r1194 42 42 void ShowConfirmPurchasePage(void); 43 43 void htmlPurchasePage(char *cTitle,char *cTemplateName); 44 void UpdateCustomerInfo(void); 44 45 unsigned ValidPurchaseInput(void); 45 46 unsigned SubmitRequest(unsigned uInvoice); //payment.c … … 102 103 if(!ValidPurchaseInput()) 103 104 ShowConfirmPurchasePage(); 105 UpdateCustomerInfo(); 104 106 105 107 //Generate invoice … … 277 279 278 280 }//void funcPurchaseExpMonth(FILE *fp) 281 282 283 void UpdateCustomerInfo(void) 284 { 285 sprintf(gcQuery,"UPDATE tClient SET cAddr1='%s',cAddr2='%s',cCity='%s',cState='%s'," 286 "cZip='%s',cCountry='CA',cCardNumber='%s',uExpMonth=%u,uExpYear=%u," 287 "cCardName='%s',uModBy=1,uModDate=UNIX_TIMESTAMP(NOW()) WHERE uClient=%u" 288 ,TextAreaSave(cAddr1) 289 ,TextAreaSave(cAddr2) 290 ,TextAreaSave(cCity) 291 ,TextAreaSave(cState) 292 ,TextAreaSave(cZip) 293 ,TextAreaSave(cCardNumber) 294 ,uExpMonth 295 ,uExpYear 296 ,TextAreaSave(cCardName) 297 ,guLoginClient); 298 mysql_query(&gMysql,gcQuery); 299 if(mysql_errno(&gMysql)) 300 htmlPlainTextError(mysql_error(&gMysql)); 301 302 }//void UpdateCustomerInfo(void) 279 303 280 304
