Changeset 35 for database.php


Ignore:
Timestamp:
Nov 8, 2008, 10:13:48 PM (16 years ago)
Author:
george
Message:
  • Upraveno: Malé změny ve funkci pro přidávání záznamů.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • database.php

    r5 r35  
    77{
    88  var $Prefix = '';
     9  var $LastQuery = '';
    910 
     11  function query($Query)
     12  {
     13    $this->LastQuery = $Query;
     14    return(parent::query($Query));
     15  }
     16
    1017  function select($Table, $What = '*', $Condition = 1)
    1118  {
    12     $Query = "SELECT ".$What." FROM `".$this->Prefix.$Table."` WHERE ".$Condition;
    13     return($this->query($Query)); 
     19    return($this->query("SELECT ".$What." FROM `".$this->Prefix.$Table."` WHERE ".$Condition)); 
    1420  }
    1521
Note: See TracChangeset for help on using the changeset viewer.