אשכול: שגיאה ב foreach
View Single Post
ישן 23-09-08, 17:24   # 1
kfir91
חסום
 
מיני פרופיל
תאריך הצטרפות: Apr 2007
הודעות: 220

kfir91 לא מחובר  

שגיאה ב foreach

רושם לי שגיאה בזה :
קוד:
foreach($_POST['name'] as $name) { 
foreach($_POST['goals'] as $goals) { 
foreach($_POST['assists'] as $assists) {
foreach($_POST['open'] as $open) {  
foreach($_POST['yellows'] as $yellows) {  
foreach($_POST['reds'] as $reds) {  
foreach($_POST['grade'] as $grade) {  
mysql_query("INSERT INTO `playerstat`(open,goals,assists,yellows,reds,grade,playerid) VALUES('$open', '$goals', '$assists', '$yellows', '$reds', '$grade', '$name')");
} } } } } } }
מה הבעיה? ואם אי אפשר לעשות ככה איך עושים
  Reply With Quote