SkyFire

E_WARNING: PDOStatement::execute() [pdostatement.execute]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1


FILE: _cache/cs_mini/core/class.cs_db.php -> line 278
URL:  http://www.edukacja.anglojezyczna.pl/en/zlobek/kadra.html

Reload »
001. <? class cs_db {
002.
003.
004.    function 
order_by($col$dir='asc'$ident=false) {
005. ...

273.        global 
$CONF$SQL_QU;
274.        try {
275.            if(
$CONF->SHOW_SQL)
276.                        
$SQL_QU[]=$query;
277.            
$ret=$this->POLACZENIE->prepare($query);
278.            $ret->execute();
279.            if(
$ret==false) throw new Exception('sql_error');
280.        } catch (
Exception $e) {
281.            
$mysql_error=$e->getMessage();
282.
283.            if(
stristr($mysql_error'marked as crashed') && $this->AFTER_REPAIR!=true) {