Changeset 30 for www/database.php


Ignore:
Timestamp:
Jan 22, 2008, 7:09:07 PM (17 years ago)
Author:
george
Message:

Opraveno: Sestavení SQL dotazu v metodě replace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • www/database.php

    r4 r30  
    5555    {
    5656      $Value = strtr($Value, '"', '\"');
    57       $Name .= ",".$Key;
     57      $Name .= ',`'.$Key.'`';
    5858      if($Value == 'NOW()') $Values .= ",".$Value;
    5959        else $Values .= ',"'.$Value.'"';
     
    6161    $Name = substr($Name, 1);
    6262    $Values = substr($Values, 1);
    63     $this->query('REPLACE INTO `'.$this->Prefix.$Table.'` (`'.$Name.'`) VALUES('.$values.')');
     63    //echo('REPLACE INTO `'.$this->Prefix.$Table.'` ('.$Name.') VALUES ('.$Values.')<br>');
     64    $this->query('REPLACE INTO `'.$this->Prefix.$Table.'` ('.$Name.') VALUES('.$Values.')');
     65    //echo($this->error().'<br>');
    6466  }
    6567 
Note: See TracChangeset for help on using the changeset viewer.