Blueb

Results 1 to 4 of 4
  1. #1
    Valued Member Marwan1 is offline
    MemberRank
    Jun 2011 Join Date
    127Posts

    Blueb

    hi all,
    i get problem when iam trying to buy item
    Code:
    Warning: mssql_query() [function.mssql-query]: message: Operand data type varchar is invalid for subtract operator. (severity 16) in C:\AppServ\www\include\class_sqlfunctions.php on line 392
     
    Warning: mssql_query() [function.mssql-query]: Query failed in C:\AppServ\www\include\class_sqlfunctions.php on line 392
    line 392
    PHP Code:
    mssql_query("UPDATE ".$this->coinstable." SET ".$this->coinscolumn." = ".$this->coinscolumn." - '".$coins."' WHERE UserID = '".$accname."'"); 
    thanx


  2. #2
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: Blueb

    First of all, why are you using single quotations for integers.

    Try ".$coins." without ' '.

  3. #3
    Valued Member polat alemdar is offline
    MemberRank
    Jun 2011 Join Date
    106Posts

    Re: Blueb

    try "$coins"

  4. #4
    Valued Member Marwan1 is offline
    MemberRank
    Jun 2011 Join Date
    127Posts

    Re: Blueb

    thank you Vusion
    u 2 polat



Advertisement