View Single Post
ישן 06-11-07, 17:06   # 7
Maccabi4ever
חבר חדש
 
מיני פרופיל
תאריך הצטרפות: Oct 2007
הודעות: 18

Maccabi4ever לא מחובר  

שאלה נוספת

אוקי יש לי שאלה נוספת עכשיו
קוד:
$day = $_GET['day'];
$sql = "TRUNCATE `resultboard` WHERE day='$day'";
$result = mysql_query($sql) or die("Failed: $sql - ".mysql_error());
זה אמור שנכנסים ל
קוד:
truncateday.php?day=שני
למחוק את כל הנתונים שה day שלהם הוא יום שני
וזה מראה שגיאה כזאתי :
קוד:
Failed: TRUNCATE `resultboard` WHERE day='שני' - 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 'WHERE day='שני'' at line 1
  Reply With Quote