p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 (http://p2p.wrox.com/forumdisplay.php?f=160)
-   -   Connecting to MySQL Server (http://p2p.wrox.com/showthread.php?t=31231)

sleepyd July 6th, 2005 06:58 AM

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?

SleepyD


GranDad August 4th, 2005 09:13 AM

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


All times are GMT -4. The time now is 03:12 PM.

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