Location: PHPKode > scripts > wwdbank > wwdbank/accounts/messagedelete.php
<?php
Include_once('includes/session_config.php');
print"<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td height=\"25\" align=\"left\">
  <h3>Delete Messages</h3></p>
  </td></tr>";
if (isset($_POST['messagedelete'])){
$message_id=($_POST['message_id']);

$query = "DELETE FROM messaging WHERE message_id='$message_id'";
$result = mysql_query($query)or die (mysql_error());
$row = mysql_query($result);
echo "<tr><td>Message has been deleted</td></tr>";
print "</table>";
}
?>
Return current item: wwdbank