Nieuw lid |
|
<? include ("global.php"); ?>
<?php
// Berichten verwijderen via Checkbox (Simpel Script)
// (c) 2002 - 2005 Downloads4life.tk
// Designed by: Smokeymcpot
if ($actie){
foreach($_POST['delete'] as $val){
$query = "DELETE FROM 'porto' WHERE id='".$val."'";
mysql_query($query) or die(mysql_error());
}
echo "Bericht(en) zijn Verwijderd..<br>Klik <a href=\"checkbox.php\">Hier!</a> om terug te gaan..";
}else{
$query = "SELECT * FROM porto ORDER BY id ASC";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_assoc($result);
if ($row['kolomnaam'] == ""){
echo "Geen Berichten in de Inbox";
}else{
$query = "SELECT * FROM 'porto' ORDER BY id ASC";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_assoc($result);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body><br />
<form method="post" action="checkbox.php">
<?php do{ ?>
<input type="checkbox" name="delete[]" value="
<?php echo $row['id']; ?>
">
<?php echo $row['kolomnaam']; ?>
<br>
<?php } while ($row = mysql_fetch_assoc($result)); ?>
<input type="submit" name="actie" value="verwijderen">
</form>
<?
}
}
?>
</body>
</html>
<? include ("global.php"); ?> <?php // Berichten verwijderen via Checkbox (Simpel Script) // (c) 2002 - 2005 Downloads4life.tk // Designed by: Smokeymcpot if ($actie){ foreach($_POST['delete'] as $val){ $query = "DELETE FROM 'porto' WHERE id='".$val."'"; } echo "Bericht(en) zijn Verwijderd..<br>Klik <a href=\"checkbox.php\">Hier!</a> om terug te gaan.."; }else{ $query = "SELECT * FROM porto ORDER BY id ASC"; if ($row['kolomnaam'] == ""){ echo "Geen Berichten in de Inbox"; }else{ $query = "SELECT * FROM 'porto' ORDER BY id ASC"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body><br /> <form method="post" action="checkbox.php"> <?php do{ ?> <input type="checkbox" name="delete[]" value=" <?php echo $row['id']; ?> "> <?php echo $row['kolomnaam']; ?> <br> <input type="submit" name="actie" value="verwijderen"> </form> <? } } ?> </body> </html>
waarom werkt dit niet?
hij zegt heletijd dat er niks in me inbox zit terwijl er echt wat in me database staat
Sliphead schreef: Code tags!
|