Changeset 34 for branches/3/class/database.php
- Timestamp:
 - Oct 14, 2008, 9:25:52 PM (17 years ago)
 - File:
 - 
      
- 1 edited
 
- 
          
  branches/3/class/database.php (modified) (5 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
branches/3/class/database.php
r32 r34 10 10 var $LastDataSet; 11 11 var $LastNumRows; 12 var $Debug = true; 12 13 13 14 function query($Query) … … 21 22 $this->LastQuery = "SELECT ".$What." FROM `".$this->Prefix.$Table."` WHERE ".$Condition; 22 23 $resul = $this->query($this->LastQuery); 23 if ($this->error <> '' ) $this->error.': '.$this->LastQuery;24 if ($this->error <> '' and $Debug) $this->error.': '.$this->LastQuery; 24 25 25 26 $this->LastNumRows = $resul->num_rows; … … 36 37 $this->LastQuery = "DELETE FROM `".$this->Prefix.$Table."` WHERE ".$Condition; 37 38 $this->query($this->LastQuery); 39 if ($this->error <> '' and $Debug) $this->error.': '.$this->LastQuery; 38 40 } 39 41 … … 53 55 $this->LastQuery = 'INSERT INTO `'.$this->Prefix.$Table.'` ('.$Name.') VALUES('.$Values.')'; 54 56 $this->query($this->LastQuery); 57 if ($this->error <> '' and $Debug) $this->error.': '.$this->LastQuery; 55 58 } 56 59 … … 67 70 $this->LastQuery = 'UPDATE `'.$this->Prefix.$Table.'` SET '.$Values.' WHERE ('.$Condition.')'; 68 71 $this->query($this->LastQuery); 72 if ($this->error <> '' and $Debug) $this->error.': '.$this->LastQuery; 69 73 } 70 74  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  