how about like this --- $insert = "INSERT INTO age (age_label) VALUES ('$age')"; --- ________________________________ From: Mark Sargent [mailto:powderkeg@xxxxxxxxxxxxxxxx] Sent: Sat 03-Jun-2006 10:02 To: PHP List Subject: Parse error: syntax error, unexpected '}' 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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php