אין לי מושג למה ...
אין לי מושג איך...
קוד ממש פשוט ונותן לי שגיאה:
השגיאה:
קוד:
Could not insert the db because 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 'show,desc,link) values ('3','Press Here','http://www.here.com' at line 1
הקוד:
קוד:
<?php
include 'mysql_connect.php';
$id = mysql_real_escape_string($_POST['id']);
$desc = mysql_real_escape_string($_POST['desc']);
$link = mysql_real_escape_string($_POST['link']);
$sql = mysql_query("insert into links(show,desc,link)
values ('$id','$desc','$link')") or die("Could not insert the db because " . mysql_error());
header("Location: index.php?page=staff");
?>