תראו יש לי את הקוד הבא שאמור לעדכן את הטבלאות במסד אך משום מה הוא עושה לי בעיה...
PHP קוד:
<?php
include "connect.php";
$id=$_POST["id"];
$en = $_POST["en"];
$he = $_POST["he"];
$art = $_POST["art"];
$year = $_POST["year"];
$size = $_POST["size"];
$up = $_POST["up"];
$cat = $_POST["cat"];
$list = $_POST["list"];
$note = $_POST["note"];
$link = $_POST["link"];
$pic = $_POST["pic"];
mysql_query("update ds set en='$en', he='$he' , art='$art' , year='$year' , size='$size' , up='$up' , cat='$cat' , list='$list' , note='$note' , link='$link' , pic='$pic' where id=$id" or die(mysql_error());
echo "<script>window.location=\'index.php\'</script>";
?>
השגיאה שהוא מציג:
PHP קוד:
Parse error: syntax error, unexpected ';' in /home/eladad/domains/eladad.web.lsrv.co.il/public_html/ea/edit_a.php on line 17
תודה מראש, אלעד.