Ignore:
Timestamp:
Oct 15, 2008, 9:40:03 PM (16 years ago)
Author:
maron
Message:

Zobrazení překladů

File:
1 edited

Legend:

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

    r34 r35  
    1515  {
    1616    $this->LastQuery = $Query;
     17    if ($this->error <> '' and $this->Debug) $this->error.': '.$this->LastQuery;
    1718    return(parent::query($Query)); 
    1819  }
     
    2223    $this->LastQuery = "SELECT ".$What." FROM `".$this->Prefix.$Table."` WHERE ".$Condition;
    2324    $resul = $this->query($this->LastQuery);
    24     if ($this->error <> '' and $Debug) $this->error.': '.$this->LastQuery;
     25    if ($this->error <> '' and $this->Debug) echo $this->error.': '.$this->LastQuery;
    2526   
    2627    $this->LastNumRows = $resul->num_rows;
     
    3738    $this->LastQuery = "DELETE FROM `".$this->Prefix.$Table."` WHERE ".$Condition;
    3839    $this->query($this->LastQuery); 
    39     if ($this->error <> '' and $Debug) $this->error.': '.$this->LastQuery;
     40    if ($this->error <> '' and $Debug) echo $this->error.': '.$this->LastQuery;
    4041  }
    4142 
     
    5556    $this->LastQuery = 'INSERT INTO `'.$this->Prefix.$Table.'` ('.$Name.') VALUES('.$Values.')';
    5657    $this->query($this->LastQuery);
    57     if ($this->error <> '' and $Debug) $this->error.': '.$this->LastQuery;
     58    if ($this->error <> '' and $Debug) echo $this->error.': '.$this->LastQuery;
    5859  }
    5960 
     
    7071    $this->LastQuery = 'UPDATE `'.$this->Prefix.$Table.'` SET '.$Values.' WHERE ('.$Condition.')';
    7172    $this->query($this->LastQuery);
    72     if ($this->error <> '' and $Debug) $this->error.': '.$this->LastQuery;
     73    if ($this->error <> '' and $this->Debug) echo $this->error.': '.$this->LastQuery;
    7374  }
    7475 
Note: See TracChangeset for help on using the changeset viewer.