Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
| Search | Today's Posts | Mark Forums Read
PHP Databases Using PHP in conjunction with databases. PHP questions not specific to databases should be directed to one of the other PHP forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP Databases 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 February 21st, 2006, 06:00 PM
Registered User
 
Join Date: Feb 2006
Location: paris, other, France.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default [Php 5 MySQL 5 Apache 2 Win32]Install

Hi,

I get this message:

Fatal error: Call to undefined function mysql_connect() in C:\jbmorla\data\sources\php\www\database\database. php on line 25

When trying to connect to MySQL from a php script.

I followed the installations instructions in the wrox manual:
"PHP5, Apache, MySQL Web Development."

It looks like something is wrong in my php.ini or a dll is missing in a directory.

The database.php script I'm using used to work fine with PHP5, Apache 1.3 and MySQL4 on windows xp



 
Old February 24th, 2006, 04:16 AM
Registered User
 
Join Date: Feb 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hmmmm I just had a problem like this with PHP 5 : Mysql 5 : and Apache 2
but im sure its the same thing.

Make sure your apache httpd.conf is pointing at your
php.ini file

In your php.ini file make sure you have
extension_dir = "Where ever the php/ext dir is"

I threw in the libmysql.dll into my ext as well.

If that still doesnt work they you can turn
display_startup_errors = on
and php will tell you what it cant find on startup





Similar Threads
Thread Thread Starter Forum Replies Last Post
Beg apache, php, MYSQL need some help dreadhead BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 December 20th, 2004 11:37 PM
Chapter 9 - Apache, PHP and Mysql Development AMP_Engineer Beginning PHP 1 September 25th, 2004 11:27 AM
I need help installing php apache mysql cardme42 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 5 September 13th, 2004 01:10 PM
PHP/Apache install issue.."blank" browser page dgr72371 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 6 June 15th, 2004 11:51 AM
Does "Beginning PHP, MySQL and Apache" Exist? pow1983 All Other Wrox Books 12 June 22nd, 2003 06:43 PM





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