Changeset 34 for branches/3
- Timestamp:
- Oct 14, 2008, 9:25:52 PM (16 years ago)
- Location:
- branches/3/class
- Files:
-
- 2 edited
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 -
branches/3/class/user.php
r29 r34 5 5 // variables 6 6 var $ID,$user,$Database; 7 var $AnonymousUserId = 1;7 var $AnonymousUserId = 0; 8 8 var $DefaultRole = 2; 9 9 var $IPAddress = ' ';
Note:
See TracChangeset
for help on using the changeset viewer.