BindValue in a sql statement between quotes
Im trying to execute something like this
$SQL = "INSERT into cb_sent_alerts(user_id,message)
Select id, ' :message ' from story1";
$stmt->bindValue(':message', $_POST['message']);
But that just sends :message to the database, not the values of
$_POST['message']; What can i do?
No comments:
Post a Comment