Changeset 336 for trunk/database.php


Ignore:
Timestamp:
Dec 30, 2011, 2:22:10 PM (13 years ago)
Author:
chronos
Message:
  • Opraveno: Zobrazování chybových hlášení chyb SQL.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/database.php

    r329 r336  
    6363    } else
    6464    {
    65       $this->Error = $this->errorInfo[2];
     65      $this->Error = $this->PDO->errorInfo();
     66      $this->Error = $this->Error[2];
    6667      if(($this->Error != '') and ($this->ShowSQLError == true))
    6768        echo('<div><strong>SQL Error: </strong>'.$this->Error.'<br />'.$Query.'</div>');
Note: See TracChangeset for help on using the changeset viewer.