אוקי יש לי שאלה נוספת עכשיו
קוד:
$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