I have try to insert sql query to databse using php pdo in textarea but i get error network "post connection reset" and I find the error it's because the query code. Any one can help me how to use pdo insert can insert sql query?
this my query to insert:
$id = $_POST['id'];
$art = $_POST['txtart'];
$spq="INSERT INTO tb_post (id,articel) VALUES(:id,:art)";
$qpq = $db->prepare($spq);
$qpq->execute(array(':id'=>$id,
':art'=>$art));
if i just insert text, the query can insert but if in text i write query code like INSERT INTO / DELETE FROM / SELECT * FROM
or ...etc give error.