Wrox Programmer Forums
BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0
This is the forum to discuss the Wrox book Beginning PHP5, Apache, and MySQL Web Development by Elizabeth Naramore, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz, Michael K. Glass; ISBN: 9780764579660
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 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 July 6th, 2005, 06:58 AM
Registered User
Join Date: Jul 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to sleepyd
Default Connecting to MySQL Server

I am having a problem I do not understand. I have gone through everything in the book and have had no problems until I started to use PHP to connect to the MySQL server (page 96/96) at which point my browser displays the following error message:
"Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\desops\PHP with MySQL\createmovie.php on line 3"

I can connect to the server from the command prompt without no problems and I cannot understand why I am getting this error.

Does anyone out there have any idea what is going on please?


Old August 4th, 2005, 09:13 AM
Authorized User
Join Date: Aug 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts

I had this same problem yesterday and found an error in my changes to php.ini file. See page 14 in in Chapter 2.

I started with php.ini-dist.
Copy this as php.ini to c:\windows.
Make sure you have not made a mistake in changes to php.ini as per page 16. I had an error in extension_dir = "c:/php/ext (note forward slashes)

See also this URL http://www.cs.wcupa.edu/~rkline/apache-php-win.html

The author has some additional changes to php.ini that I followed.

Hope this helps

Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting to MYSQL from C / C++ ? oloeriubogdan Linux 1 December 15th, 2006 10:50 AM
Trouble connecting to MySQL server (CH3) mrouse BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 October 20th, 2005 01:44 PM
Connecting to mySQL WIx ASP.NET 1.0 and 1.1 Basics 3 October 17th, 2004 04:13 PM
list_db.php - Connecting to a MYSQL server phpnukes BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 3 March 3rd, 2004 08:31 PM
connecting mysql with vb ks_anoop MySQL 3 February 5th, 2004 02:43 PM

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