[PHP] Re: Foreach ...... Help

2002-11-06 Thread Remon Redika
Sorry before. I Just to try to Explain my Problem may be this my reason .. I have Two Text Fields The First Text Field i call it "InputX" and The Second Text Field I Call it "InputY", Generatable Field (using javascripts), if User Click the Button ("AddRow's Button") for Generated / produce th

Re: [PHP] Re: Foreach ...... Help

2002-11-06 Thread Rasmus Lerdorf
Your code is bogus. You probably want: $vary[$i] = $y; And $vary(100) also makes no sense. Also, why are you looping through the $InputY array and putting all the values into $vary? Why not just do $vary = $InputY; ? If it is because you need to renumber the indices, have a look at the arr

[PHP] Re: Foreach ...... Help

2002-11-06 Thread Remon Redika
Parse error: parse error, unexpected '=' in /home/intra/Inventroot/software/savedata.php on line 35 $vary(100); $i = 0; foreach($InputY as $y){ $vary($i) = $y; <-line 35 $i++; } foreach($Nama_Software as $x){ $insertq = "Insert into NSoftware (X, Y) values ('$In