welcome. i need code - delete comments by blog owner. you can convert it? please
$id = cleanQuery($_GET["id"]);
echo "<head>"; echo "<title>Delete Comment</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">"; echo "</head>"; echo "<body>";
echo " ";
$res = mysql_query("DELETE FROM ibwf_blogcomment WHERE id ='".$id."'"); if($res) { mysql_query("INSERT INTO ibwf_mlog SET action='Blogcomment', details='".getnick_uid(getuid_sid($sid))." Deleted a Blog Comment', actdt='".time()."'"); echo "<img src="../images/ok.gif" alt="O"/>Comment deleted"; }else{ echo "<img src="../images/notok.gif" alt="X"/>Database Error"; } echo "
";
echo "<a href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt="*"/>"; echo "Home</a>"; echo "
</body>";