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 "<p align=\"center\">";
$res = mysql_query("DELETE FROM ibwf_blogcomment WHERE id ='".$id."'");
if($res)
{
mysql_query("INSERT INTO ibwf_mlog SET action='Blogcomment', details='<b>".getnick_uid(getuid_sid($sid))."</b> 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 "<br/><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p></body>";
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 "<p align=\"center\">";
$res = mysql_query("DELETE FROM ibwf_blogcomment WHERE id ='".$id."'");
if($res)
{
mysql_query("INSERT INTO ibwf_mlog SET action='Blogcomment', details='<b>".getnick_uid(getuid_sid($sid))."</b> 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 "<br/><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p></body>";
Comment