Parse error: syntax error, unexpected '}'
| From: | Mark Sargent | Date: | Sat, 03 Jun 2006 03:02:11 +0000 |
| Subject: | Parse error: syntax error, unexpected '}' | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-237311@lists.php.net to get a copy of this message | ||
Hi All,
can anone see what's wrong with the below code? I get this error,
*Parse error*: syntax error, unexpected '}' in */usr/local/apache2/htdocs/moviedata2.php* on line *18
*
$age=1;
while($age<=100) {
$insert = "INSERT INTO age (age_label) VALUES ($age)";
$results = mysql_query($insert) or die(mysql_error());
$age++
}
Cheers.
Mark Sargent.