<form action="" method="post" name="form1"> <textarea name="text_all" rows="9" cols="100"> UPDATE jos_content SET title='toto3' WHERE id=10000; UPDATE jos_content SET title='toto4' WHERE id=10001; </textarea>, </form>
<?php if (isset($_POST['submit'])) { $dbc=mysqli_connect('localhost','ak22_akim13','*****','ak2######'); $var_text_all=($_POST['text_all']); $var_text_all = str_replace('\r\n',' ',$var_text_all); $sql = stripslashes($var_text_all); $query=$var_text_all; $result = mysqli_query($dbc, $query) or die('Encore une Erreur de merde'); mysqli_close($dbc); } ?>
$sql = stripslashes($var_text_all);
UPDATE jos_content SET title ='toto2' WHERE id= 10000;
UPDATE jos_content SET title='toto2' WHERE id=10000; UPDATE jos_content SET title='toto1' WHERE id=10001;
UPDATE jos_content SET title ='toto2' WHERE id=10000; UPDATE jos_content SET title='toto1' WHERE id=10001; You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPDATE jos_content SET title='toto1' WHERE id=10001' at line 2
$sql = stripslashes($var_text_all);
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question