Wrox Programmer Forums
|
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 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 November 27th, 2004, 04:01 PM
Authorized User
 
Join Date: Jul 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ch. 15, Fatal Error When Connecting to Database

Hi,

Well, I found the path to my database files. But now when I open my browser to setup.php, I get the following error:

Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\test\conn.php on line 7

I'm not sure what is wrong. I could be using the wrong username (root), or maybe it's something else. The book doesn't talk about properly configuring the conn.php file. Can anyone help me now? (You can ignore my earlier question cause at least I've figured something out.)

Thanks. Kara

 
Old November 27th, 2004, 07:57 PM
Authorized User
 
Join Date: Jul 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If this helps for anyone who reads this, lines 7 and 8 in conn.php are the following:

$conn = mysql_connect(SQL_HOST,SQL_USER,SQL_PASS)
  or die('Could not connect to the database; ' . mysql_error());

Hope that helps.

Kara

 
Old November 30th, 2004, 12:37 PM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What version of PHP r u using?

Christian





Similar Threads
Thread Thread Starter Forum Replies Last Post
CH 15 AddBid.ASP rauf BOOK: Beginning ASP 3.0 1 November 11th, 2008 01:51 PM
Ch 15 - Security aspcoder BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 7 May 3rd, 2008 02:55 PM
CH.15 NEED HELP stacy BOOK: Beginning ASP 3.0 1 January 21st, 2004 03:37 AM





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