Changeset 1195

Show
Ignore:
Timestamp:
02/18/10 12:46:42 (2 years ago)
Author:
Hugo
Message:

ispClient: code fixes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/unxsISP/interfaces/customer/purchase.c

    r1194 r1195  
    285285        sprintf(gcQuery,"UPDATE tClient SET cAddr1='%s',cAddr2='%s',cCity='%s',cState='%s'," 
    286286                        "cZip='%s',cCountry='CA',cCardNumber='%s',uExpMonth=%u,uExpYear=%u," 
    287                         "cCardName='%s',uModBy=1,uModDate=UNIX_TIMESTAMP(NOW()) WHERE uClient=%u" 
     287                        "cCardName='%s',cCode='',uModBy=1,uModDate=UNIX_TIMESTAMP(NOW()) WHERE uClient=%u" 
    288288                        ,TextAreaSave(cAddr1) 
    289289                        ,TextAreaSave(cAddr2) 
     
    309309                        "cCity,cState,cZip,cCountry,cCardType,cCardNumber,uExpMonth,uExpYear," 
    310310                        "cCardName,uOwner,uCreatedBy,uCreatedDate) " 
    311                         "VALUES (SELECT cFirstName,cLastName,cEmail,cAddr1,cAddr2," 
     311                        "SELECT cFirstName,cLastName,cEmail,cAddr1,cAddr2," 
    312312                        "cCity,cState,cZip,cCountry,cCardType,cCardNumber,uExpMonth,uExpYear," 
    313                         "cCardName,uOwner,1,UNIX_TIMESTAMP(NOW())"); 
     313                        "cCardName,uOwner,1,UNIX_TIMESTAMP(NOW()) FROM tClient WHERE uClient=%u",guLoginClient); 
    314314        mysql_query(&gMysql,gcQuery); 
    315315        if(mysql_errno(&gMysql))