Changeset 35 for branches/3/class/database.php
- Timestamp:
- Oct 15, 2008, 9:40:03 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3/class/database.php
r34 r35 15 15 { 16 16 $this->LastQuery = $Query; 17 if ($this->error <> '' and $this->Debug) $this->error.': '.$this->LastQuery; 17 18 return(parent::query($Query)); 18 19 } … … 22 23 $this->LastQuery = "SELECT ".$What." FROM `".$this->Prefix.$Table."` WHERE ".$Condition; 23 24 $resul = $this->query($this->LastQuery); 24 if ($this->error <> '' and $ Debug)$this->error.': '.$this->LastQuery;25 if ($this->error <> '' and $this->Debug) echo $this->error.': '.$this->LastQuery; 25 26 26 27 $this->LastNumRows = $resul->num_rows; … … 37 38 $this->LastQuery = "DELETE FROM `".$this->Prefix.$Table."` WHERE ".$Condition; 38 39 $this->query($this->LastQuery); 39 if ($this->error <> '' and $Debug) $this->error.': '.$this->LastQuery;40 if ($this->error <> '' and $Debug) echo $this->error.': '.$this->LastQuery; 40 41 } 41 42 … … 55 56 $this->LastQuery = 'INSERT INTO `'.$this->Prefix.$Table.'` ('.$Name.') VALUES('.$Values.')'; 56 57 $this->query($this->LastQuery); 57 if ($this->error <> '' and $Debug) $this->error.': '.$this->LastQuery;58 if ($this->error <> '' and $Debug) echo $this->error.': '.$this->LastQuery; 58 59 } 59 60 … … 70 71 $this->LastQuery = 'UPDATE `'.$this->Prefix.$Table.'` SET '.$Values.' WHERE ('.$Condition.')'; 71 72 $this->query($this->LastQuery); 72 if ($this->error <> '' and $ Debug)$this->error.': '.$this->LastQuery;73 if ($this->error <> '' and $this->Debug) echo $this->error.': '.$this->LastQuery; 73 74 } 74 75
Note:
See TracChangeset
for help on using the changeset viewer.