Wrox Programmer Forums
|
BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143
This is the forum to discuss the Wrox book Beginning PHP 6, Apache, MySQL 6 Web Development by Timothy Boronczyk, Elizabeth Naramore, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz; ISBN: 9780470391143
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 9th, 2009, 04:56 PM
Registered User
 
Join Date: May 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Will the code in the book work in PHP5?

I am just wondering, since PHP6 is supposed to be a new build. I am having some trouble with the code in Chapter two, specifically pg. 45. The code is supposed to post a username and password from login.php to movie1.php. But when I hit the submit button, I get an Apache error:
Parse error:syntax error, unexpected $end in E:\Apache2.2\htdocs\movie1.php on line 35.
Line 35 is the last line of the movie1.php page. I have gone over the code several times and have found no syntax errors. What could be the problem?
 
Old May 11th, 2009, 05:23 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 166
Thanks: 2
Thanked 33 Times in 33 Posts
Default

Hi pooch,

You get this error if you haven't closed a statement - usually a bracket or a curly brace in an if statement, or you haven't ended the php block with ?>

Have you tried downloading and running the chapter 2 code from the Wrox site (link above)? I ran it on PHP5 and had no problems. If you can't see why your error is happening, compare your code to the downloaded stuff.

Phil
 
Old May 11th, 2009, 12:43 PM
Registered User
 
Join Date: May 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default php code, ch 2

Hi Phil,
Thanks for your reply. I haven't run the code from the book yet, because it is the finished project at the end, and I am in the middle of the chapter right now. Just wanted to get all of the examples working one at a time. I seem to be comprehending it very well this way. Anyway, I will search through the code again until i find the error. Thanks again,
Pooch





Similar Threads
Thread Thread Starter Forum Replies Last Post
does not work register.php in ch 11 begining php5 tanvir_math BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 3 February 7th, 2007 05:03 PM
PHP5 example code PKHG Pro PHP 1 July 4th, 2006 11:17 AM
I cannot get this code to work , from the book/dl titanvic BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 April 20th, 2005 12:33 AM
Code from Book did not work! mnongkhlaw Wrox Book Feedback 2 October 28th, 2003 12:34 AM
Code from Book did not work! mnongkhlaw Classic ASP Databases 0 October 27th, 2003 07:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.