View Single Post
ישן 02-06-08, 20:03   # 1
SlipY
מ מנ מנה מנהל בהוסטס
עסק רשום [ ? ]
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: מושב אודים
גיל: 37
הודעות: 2,615
Send a message via Skype™ to SlipY

SlipY לא מחובר  

PHP \ MySQL שגיאה שאני נתקבל בה..

אין לי מושג למה ...
אין לי מושג איך...
קוד ממש פשוט ונותן לי שגיאה:

השגיאה:
קוד:
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");
?>
__________________
בברכה,
פרידמן אסף.
אקסייט תקשורת
[ נייד: 050-764-0009 ][ טלפון 073-7972444 ][ פקס 073-7972443 ] [ מייל admin@xsc.co.il ]
  Reply With Quote