問題の解決にご協力ください。
注意:未定義の変数:6行目のD:\ MyWebSite \ css_pro \ admin \ core\de_products_test.phpのID
注意:未定義の変数:17行目のD:\ MyWebSite \ css_pro \ admin \ core\de_products_test.phpのID
コード:
session_start();
require("../../inc/con_db.php");
$qry=mysql_query("SELECT * FROM products WHERE id='$id'");
$row=mysql_fetch_array($qry);
if($row["img_thumb"]!="") {
$thum=$row["img_thumb"];
unlink("/images/products/thumbs/".$thum);
}
if($row["img_larg"]!="") {
$larg=$row["img_larg"];
unlink("/images/products/".$larg);
}
$delete="DELETE FROM products WHERE id='$id' ";
$result=mysql_query($delete);
if($result==1) {
print "Entry delete success";
} else {
print "Entry delete failed";
}