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 January 25th, 2010, 12:27 AM
Registered User
 
Join Date: Jan 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question Error on page 87

I have run http://localhost/db_ch03-1.php in my browser, the following statement appear;

Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\db_ch03-1.php on line 3

i have follow all the instruction included to grant user bp6am, identified by bp6ampass. What else do i left?? any suggestion. thanks for the help.
 
Old February 1st, 2010, 12:20 AM
Registered User
 
Join Date: Jan 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default I have Solution

Might its not a very intelligent act,I decided to uninstall my Apache and other software needed and change to Wampserever. I still can run the code successfully. Just change the localhost to 127.0.0.1 and bp6am to root.
 
Old February 1st, 2010, 01:41 AM
Authorized User
 
Join Date: Jan 2010
Posts: 25
Thanks: 1
Thanked 4 Times in 4 Posts
Smile

Hi Nurul,

I'm not an official Wrox person, just a fellow student. So take this with a grain of salt.

It was a good idea using a package. Because of the delay in releasing PHP6, the book's instructions are not "yet" really accurate. The reason you got that error message had to do with configuration issues between the AMP modules. The PHP modules for handling MySql were not configured properly. Your package should have and probably did handle all of this for you.

Just a piece of advice. It would be good to know what versions of each piece you ended up with (each piece being Apache, MySql, and PHP). this might come into play as you go through the book. Running the phpinfo() function would be a good place to start. You may not have noticed this earlier, but the result of that function probably didn't show a MySql section, while now it does.

Good luck with the rest of the book. I'm on Chapter 7 now and I've found it to be excellent once you get past those initial configuration issues.

Best Regards,
Boz





Similar Threads
Thread Thread Starter Forum Replies Last Post
error occured in exercise at pg.87 hafizaismail BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 1 January 22nd, 2010 01:26 PM
Stuck on chapter 4 page 87. misheck BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 2 January 10th, 2010 12:34 PM
AddModalErrors and AllCountries page 87 View Data Dictionary barnettrob BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 8 October 21st, 2009 08:07 PM
Page 87 Golarin BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 3 September 27th, 2009 03:58 AM





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