Nieuw lid |
|
<?
include("connect.php");
if(isset($_POST['submit'])){
if(empty($_POST['delete'])){
echo 'Je hebt niets geselecteerd';
}else{
$delete = implode(', ', $_POST['delete']);
mysql_query("Delete From vragen Where id =(".$delete.")");
}
}else{
$sql = mysql_query("Select vraag,id From vragen");
if(mysql_num_rows($sql) == 0){
echo 'er is nog niets om te deleten.';
}else{
echo '<table><form target="_self" method="post">';
while($asc = mysql_fetch_assoc($sql)){
echo '<tr><td><input type="checkbox" value="'.$asc['id'].'" name="delete" /></td>';
echo '<td>'.$asc['id'].' - '.$asc['vraag'].'</td></tr>';
}
echo '<tr><td></td><td><input type="submit" value="delete" name="submit" /></td></tr>';
echo '</form></table>';
}
}
?>
<? include("connect.php"); if(isset($_POST['submit'])){ if(empty($_POST['delete'])){ echo 'Je hebt niets geselecteerd'; }else{ $delete = implode(', ', $_POST['delete']); mysql_query("Delete From vragen Where id =(".$delete.")"); } }else{ echo 'er is nog niets om te deleten.'; }else{ echo '<table><form target="_self" method="post">'; echo '<tr><td><input type="checkbox" value="'.$asc['id'].'" name="delete" /></td>'; echo '<td>'.$asc['id'].' - '.$asc['vraag'].'</td></tr>'; } echo '<tr><td></td><td><input type="submit" value="delete" name="submit" /></td></tr>'; } } ?>
wat klopt er niet aan, sql queries kloppen
als ik iets aanvink en op remove klik doetie het gewoon niet
vinTage geeft gratis code tags weg vandaag
=> waarvoor dank
Warning: implode(): Bad arguments. in /home2/rada/public_html/dimaz/control/verwijderen2.php on line 7
is de error nu
|