Ignore:
Timestamp:
Oct 14, 2008, 6:18:40 PM (16 years ago)
Author:
maron
Message:

Odhlášení, frontend.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3/class/database.php

    r28 r29  
    88  var $Prefix = '';
    99  var $LastQuery = '';
    10   var $Last_num_rows;
     10  var $LastDataSet;
     11  var $LastNumRows;
    1112 
    1213  function query($Query)
     
    1920  {
    2021    $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); 
    2231  }
    2332
Note: See TracChangeset for help on using the changeset viewer.