Re: Foreach ...... Help
| From: | Remon Redika | Date: | Thu, 07 Nov 2002 04:36:20 +0000 |
| Subject: | Re: Foreach ...... Help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-123102@lists.php.net to get a copy of this message | ||
Parse error: parse error, unexpected '=' in /home/intra/Inventroot/software/savedata.php on line 35
<?php
$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 ('$InputX','$vary($i)')";
echo $insertq."<br>";
mysql_query($insertq);
$i++;
}
?>
Thank's
Jon Haworth writes:
Hi Remon,I try this script with php, but i found an Error.It would be helpful if you could show us this error message.$vary(100);At the very least, you should change this line to $vary = array(); Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php