Hi,
currently I'm stuck on finding the error of one of my functions. I try to read data out of MySQL using PDO. the SQL string is loaded as Prepared Statement (PDO->prepare()) and shall be executed using PDOStatement->execute().
I already know:
- there's no PDOException thrown
- there's no Error message
- the execute method returns false
- the parameters are correctly passed
(- all fields exist in the DB, they are either string types or int)
anyone an idea where to look or how to get more details about the error?
if I try it manually, it works…
currently I'm stuck on finding the error of one of my functions. I try to read data out of MySQL using PDO. the SQL string is loaded as Prepared Statement (PDO->prepare()) and shall be executed using PDOStatement->execute().
I already know:
- there's no PDOException thrown
- there's no Error message
- the execute method returns false
- the parameters are correctly passed
(- all fields exist in the DB, they are either string types or int)
anyone an idea where to look or how to get more details about the error?
if I try it manually, it works…
Code:
SELECT `comment`, `date`, `email`, `homepage`, `icq`, `id`, `ip`, `name`, `text`, `time` FROM `myphpgb_entries` WHERE `status` = ? ORDER BY `id` DESC LIMIT ?,?
Comment