Ignore:
Timestamp:
Oct 13, 2008, 6:52:24 PM (16 years ago)
Author:
maron
Message:

Registrace

File:
1 edited

Legend:

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

    r25 r27  
    44// Date: 2007-07-19
    55
    6 class Database extends mysqli
     6class database extends mysqli
    77{
    88  var $Prefix = '';
    99  var $LastQuery = '';
     10  var $Last_num_rows;
    1011 
    1112  function query($Query)
     
    1819  {
    1920    $this->LastQuery = "SELECT ".$What." FROM `".$this->Prefix.$Table."` WHERE ".$Condition;
     21    $count = $this->query($this->LastQuery);
     22    $count = $count->fetch_array();
     23    $this->Last_num_rows = count($count);
    2024    return($this->query($this->LastQuery)); 
    2125  }
Note: See TracChangeset for help on using the changeset viewer.