Changeset 426 for trunk/database.php


Ignore:
Timestamp:
Oct 10, 2012, 8:28:07 PM (12 years ago)
Author:
chronos
Message:
  • Přidáno: Tlačítko zrušit u formulářů.
  • Opraveno: Chyba načítání informací o uživateli pokud neměl vazbu na Member/Customer.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/database.php

    r414 r426  
    7878  function delete($Table, $Condition)
    7979  {
    80     $this->PDO->query('DELETE FROM `'.$this->Prefix.$Table.'` WHERE '.$Condition); 
     80    $this->query('DELETE FROM `'.$this->Prefix.$Table.'` WHERE '.$Condition); 
    8181  }
    8282 
     
    9393    $Name = substr($Name, 1);
    9494    $Values = substr($Values, 1);
    95     $this->PDO->query('INSERT INTO `'.$this->Prefix.$Table.'` ('.$Name.') VALUES('.$Values.')');
     95    $this->query('INSERT INTO `'.$this->Prefix.$Table.'` ('.$Name.') VALUES('.$Values.')');
    9696    $this->insert_id = $this->PDO->lastInsertId();
    9797  }
     
    106106    }
    107107    $Values = substr($Values, 2); 
    108     $this->PDO->query('UPDATE `'.$this->Prefix.$Table.'` SET '.$Values.' WHERE ('.$Condition.')');
     108    $this->query('UPDATE `'.$this->Prefix.$Table.'` SET '.$Values.' WHERE ('.$Condition.')');
    109109  }
    110110 
     
    122122    $Values = substr($Values, 1);
    123123    //echo('REPLACE INTO `'.$this->Prefix.$Table.'` ('.$Name.') VALUES ('.$Values.')<br />');
    124     $this->PDO->query('REPLACE INTO `'.$this->Prefix.$Table.'` ('.$Name.') VALUES('.$Values.')');
     124    $this->query('REPLACE INTO `'.$this->Prefix.$Table.'` ('.$Name.') VALUES('.$Values.')');
    125125    //echo($this->error().'<br>');
    126126  }
     
    128128  function charset($Charset)
    129129  {
    130     $this->PDO->query('SET NAMES "'.$Charset.'"');
     130    $this->query('SET NAMES "'.$Charset.'"');
    131131  }
    132132 
Note: See TracChangeset for help on using the changeset viewer.