03-05-2009, 19:46
|
|
|
|
חבר מתאריך: 07.04.09
הודעות: 95
|
|
מופיע לי הודעת syntax בדפדפן למרות שהקוד עובד
אני רשמתי שאילתא כדי לשלוח למסד הנתונים
2 שורות של טקסט ונתיב של תמונה
עכשיו השאילתא עובדת אבל בדפדפן מופיע לי ההודעה הבאה :
קוד:
Error: 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 '1' at line 1
וזו השאילתא שהשתמשתי בה :
קוד PHP:
$con = mysql_query ("INSERT INTO image (title, des,image) VALUES ('$_POST[title]','$_POST[des] ','". '/tutoryal/upload/'.mysql_real_escape_string(basename($_FILES['file']['name']))."')");
אשמח לקבל כל תשובות
תודה מראש
|