Okay, so the problem is, I can't delete any comment.. I've been watching some guides but couldn't find much help, here's the code;
<?php
include "core/inc/conn.php";
mysql_select_db("comments");
$getquery = mysql_query("SELECT * FROM comments ORDER BY id DESC");
while($rows = mysql_fetch_assoc($getquery))
{
$id = $rows['id'];
$comment_name = $rows['name'];
$comment = $rows['comment'];
$dellink = "<a href=\delete.php?id=' . $id . \'> Delete </a>";
echo"<tr><th>$id</th>";
echo"<th><form action='checked.php' method='checked'></th>";
echo "<th>$comment_name</th>";
echo"<th>$comment</th>";
echo"<th>$dellink</th>";
echo"<th>$ipserver</th></tr>";
}
if(isset($_GET['error']))
{
echo "<p>15 Bokstäver max!";
}
?>
The $dellink isn't working, here's the delete.php;
<?php
include "core/inc/conn.php";
mysql_select_db('comments');
$deleteid = $_GET['id'];
mysql_query("DELETE FROM comments WHERE id='$deleteid'");
header("location: administrative/logs.php");
?>