p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 (http://p2p.wrox.com/book-beginning-php-apache-mysql-web-development-isbn-978-0-7645-5744-6-123/)
-   -   Chapter 6 p.171 Code Error (http://p2p.wrox.com/book-beginning-php-apache-mysql-web-development-isbn-978-0-7645-5744-6/14686-chapter-6-p-171-code-error.html)

bonehead June 26th, 2004 06:28 PM

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'.



All times are GMT -4. The time now is 10:02 PM.

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.