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
Post a Comment