Changeset 426 for trunk/database.php
- Timestamp:
- Oct 10, 2012, 8:28:07 PM (13 years ago)
- File:
- 
      - 1 edited
 
 - 
          
  trunk/database.php (modified) (5 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      trunk/database.phpr414 r426 78 78 function delete($Table, $Condition) 79 79 { 80 $this-> PDO->query('DELETE FROM `'.$this->Prefix.$Table.'` WHERE '.$Condition);80 $this->query('DELETE FROM `'.$this->Prefix.$Table.'` WHERE '.$Condition); 81 81 } 82 82 … … 93 93 $Name = substr($Name, 1); 94 94 $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.')'); 96 96 $this->insert_id = $this->PDO->lastInsertId(); 97 97 } … … 106 106 } 107 107 $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.')'); 109 109 } 110 110 … … 122 122 $Values = substr($Values, 1); 123 123 //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.')'); 125 125 //echo($this->error().'<br>'); 126 126 } … … 128 128 function charset($Charset) 129 129 { 130 $this-> PDO->query('SET NAMES "'.$Charset.'"');130 $this->query('SET NAMES "'.$Charset.'"'); 131 131 } 132 132 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
