I know that we're not really meant to request stuff, but I cannot do this script on my own.
I need the bellow code to add delete links in the table so that the user will be able to delete requests...
<?php
echo"<html><head><title>Requests</title></head>
<body>";
include("config.php");
#time
$time = date("g:i a");
#date
$date = date("m.d.y");
#time + date
$timedate = $time . "," . "\n" . $date;
#connect to MySQL
$conn = @mysql_connect($confhost, $confusername, $confpassword)
or die("Could Not Connect to MySQL");
#select specified database
$rs = @mysql_select_db($confdatabase, $conn)
or die("Could Not Select Database");
#create SQL query
$sql = "select * from requests";
#execute query
$rs = mysql_query($sql, $conn)
or die("Could Not Execute Query");
$list = "<table border=\"1\" cellpadding=\"2\">";
$list .= "<tr><th>Habbo Name</th>";
$list .= "<th>Request</th>";
$list .= "<th>Time & Date</th></tr>";
#loop through each row of requests database table
while($row = mysql_fetch_array($rs)) {
$list .= "<tr>";
$list .= "<td>" . $row["habbo_name"] . "</td>";
$list .= "<td>" . $row["request"] . "</td>";
$list .= "<td>" . $row[time_date] . "</td></tr>";
$list .= "</table>";
}
#echo requests & current time & date
echo($list . "<br><br>Current Time & Date:" . "\n" . $timedate);
echo"</body></html>";
?>