Bongo_Bob wrote:
> I am working through the Training from the source
Dreamweaver 8 with ASP,
> ColdFusion and PHP book and when I try to setup the
database connection it
> fails with an erro that says "Your PHP server doesn't
have the MySql module
> loaded or you can't use the mysql_(p)connect functions".
Pity you didn't use my book instead - it tells you what to
do. Still,
I'm a nice guy, so...
You need to enable the MySQL and MySQLI extensions in PHP.
Open php.ini,
and search for the section marked Windows extensions. Remove
the
semicolon from the beginning of these lines:
;extension=php_mbstring.dll
;extension=php_mysql.dll
Add another line like this:
extension=php_mysqli.dll
Also make sure that the extension_dir setting in php.ini
points to the
ext subfolder of your PHP folder. I have installed PHP in
C:\php5, so
the setting looks like this:
extension_dir = "C:\php5\ext"
Save php.ini and restart Apache. Run phpinfo(), and check
that mysql and
mysqli are listed in the PHP configuration (they're quite a
long way down).
--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/