Changeset 29 for branches/3/class/database.php
- Timestamp:
- Oct 14, 2008, 6:18:40 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3/class/database.php
r28 r29 8 8 var $Prefix = ''; 9 9 var $LastQuery = ''; 10 var $Last_num_rows; 10 var $LastDataSet; 11 var $LastNumRows; 11 12 12 13 function query($Query) … … 19 20 { 20 21 $this->LastQuery = "SELECT ".$What." FROM `".$this->Prefix.$Table."` WHERE ".$Condition; 21 return($this->query($this->LastQuery)); 22 $resul = $this->query($this->LastQuery); 23 24 $this->LastNumRows = $resul->num_rows; 25 if ( $this->LastNumRows > 0 ) { 26 $this->LastDataSet = true; 27 } else { 28 $this->LastDataSet = false; 29 } 30 return($resul); 22 31 } 23 32
Note:
See TracChangeset
for help on using the changeset viewer.