UPDATE:
zaś funkcja:
{ $query = $pdo->prepare($sql); $query->execute($args); return $query; }
A błąd to:
Kod
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 Something is wrong in your syntax obok 'read='s' where receive='67'' w linii 1' in C:\Program Files (x86)\WebServ\httpd\champion-rally\functions\function.query.php:5 Stack trace: #0 C:\Program Files (x86)\WebServ\httpd\champion-rally\functions\function.query.php(5): PDOStatement->execute(Array) #1 C:\Program Files (x86)\WebServ\httpd\champion-rally\messages.php(8): query() #2 C:\Program Files (x86)\WebServ\httpd\champion-rally\index.php(59): require_once('C:\Program File...') #3 {main} thrown in C:\Program Files (x86)\WebServ\httpd\champion-rally\functions\function.query.php on line 5