php - Catchable fatal error: Object of class PDOStatement could not be converted to string -


following php code execute sql. fails catchable fatal error. , have read php manual pdostatement, sample code such similar code wrote. can't figure out error.

$statement = $db->prepare("insert note_list (id, date, note)"."values (:id, :date, :note)"); $statement->execute(array(":id" => $count,":date" => $date,":note" => $note)); 

$statement->execute(array(":id" => $count,":date" => $date,":note" => $note)); 

if error occurs on line, either $count, $date or $note instance of pdostatement. figure out 1 , turn them strings properly.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -