View Single Post
  #1 (permalink)  
Old June 26th, 2004, 06:28 PM
bonehead bonehead is offline
Authorized User
 
Join Date: Jun 2004
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 6 p.171 Code Error

It appears that this line in movie.php needs an additional '-' character:
for ($year=date("Y"); $year >=1970; $year-) {

thus:
for ($year=date("Y"); $year >=1970; $year--) {

removing the additional '-' character generates this error:
"Parse error: parse error, unexpected ')' in ../chapter6/movie.php on line 51"

There appears to be a similar problem in Chapter 5, 'AddMovie.php'.