Code:
else if($action=="delete") { $id = $_GET["id"]; echo "<head>"; echo "<title>Shop Tools</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_shop WHERE id='".$id."'"); if($res) { mysql_query("DELETE FROM ibwf_shop WHERE id='".$id."'"); echo "<img src=\"../phpThumb/phpThumb.php?src=../images/ok.gif\" alt=\"O\"/>item deleted"; }else{ echo "<img src=\"../phpThumb/phpThumb.php?src=../images/notok.gif\" alt=\"X\"/>Database Error"; } echo " "; echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../phpThumb/phpThumb.php?src=../images/home.gif\" alt=\"\"/>Home</a>"; echo "</p></body>"; }
but i am getting database Error .
what have i missed .
thanks
Comment