You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') values ('001','ÁÐÁèǧ','50','/userfiles/images/biodiversity-95177-1.jpg','
' at line 1
Code (PHP)
<?
include ("connect.php");
//echo "".$_POST['id'].""."".$_POST['name'].""."".$_POST['pr']."".$_POST['detail']."".$_POST['photo']."";
mysql_query("insert into product (product_id,product_name,product_price,product_photo,product_detail,) values ('$_POST[id]','$_POST[name]','$_POST[pr]','$_POST[photo]','$_POST[detail]'") or die (mysql_error());
echo '<meta http-equiv="Refresh" content="0;URL=product_add.php">';
?>