![]() |
# 4 |
חסום
|
ידעתי שזה foreach לא ידעתי רק איך להשתמש תודה.. אבל זה מראה לי שגיאה כזאתי :
קוד:
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 'option,questionid,votes) VALUES('2', '3', '0')' at line 1 סתכל : קוד:
foreach($_POST['option'] as $option) { mysql_query("INSERT INTO polloptions (option,questionid,votes) VALUES('".$option."', '".$question_id."', '0')") or die("ERROR: ".mysql_error()); } Last edited by kfir91; 10-09-08 at 14:02.. |
![]() |
חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים) | |
|
|