Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
breakthesec committed Nov 21, 2014
1 parent e4ce3ea commit 51fce7b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion admin/MessageList.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@

include($_SERVER['DOCUMENT_ROOT'].'/btslab/header.php');
include($_SERVER['DOCUMENT_ROOT'].'/btslab/mysqlconnection.php');

if(isset($_REQUEST['action']) && $_REQUEST['action']='delete')
{
mysql_query("Delete from Messages;");
}
$result=mysql_query("select * from Messages;") or die(mysql_error());
$row=mysql_num_rows($result);
if($row>=1)
{
echo "<div style='text-align: right; '> <a href='?action=delete' >Delete All Messages</a></div> ";
echo "</br></br>Messages: </br>";
echo "<ol>";
while($row=mysql_fetch_array($result))
Expand Down

0 comments on commit 51fce7b

Please sign in to comment.