มันขึ้น error Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\test\admin_delete_product.php on line 15
Fatal error: Function name must be a string in C:\AppServ\www\test\admin_delete_product.php on line 16
<?
include "connect.php";
@session_start();
if ((empty($_SESSION["username"])) or (empty($_SESSION["password"]))){
header("location:admin.htm");
exit;
}
$sql_del = "select * from product where product_id=$id";
$ex_del = mysql_query($sql_del, $conn);
$rs_del =mysql_fetch_array($ex_del);
Code (PHP)
$sql_del = "select * from product where product_id='$id'";
$ex_del = mysql_query($sql_del) or die(mysql_error());
ลอง debug ประมาณนี้ครับ
Date :
2014-03-30 17:34:21
By :
iieszz
No. 2
Guest
Fatal error: Function name must be a string in C:\AppServ\www\test\admin_delete_product.php on line 14
พี่ครับยังไม่ได้ครับรบกวนอีกนิดครับ
ตรงนี็อะครับ $filename = $rs_del(product_image);
unlink ("images/$filename");
$filename = $rs_del(product_image);
unlink ("images/$filename");
ขึ้น errorว่า Fatal error: Function name must be a string in C:\AppServ\www\test\admin_delete_product.php on line 14