prepare("INSERT INTO comment (loc_id,username,comment) VALUES (:loc_id,:username,:comment)"); $stmt->bindValue(':username', $strUsername); $stmt->bindValue(':comment', $strComment); $stmt->bindValue(':loc_id', $id); $stmt->execute(); echo "ok"; } ?>