View previous topic :: View next topic |
Author |
Message |
asalmon -
Joined: 09 Aug 2003 Posts: 4
|
Posted: Wed Aug 27, 2003 8:38 pm Post subject: how do I link php and mysql. |
|
|
I have installed php and it works
I have installed mysql and get a green traffic light.
Yet if I try to run some code that connects to a database I get a message
Fatal error: Call to undefined function: mysql_connect() in C:\PROGRAM FILES\ABYSS WEB ....
If I try to run phpMyAdmin I get
cannot load MySQL extension,
please check PHP Configuration
both of which suggest that php is not aware that mysql is installed.
I looked in the php.ini file - there is a comment under windows extensions that mysql support is built in so I don't have to load a dll.
I tried stopping and restarting the server.
Php version is 5.0.0b1 - mysql is 4.0.14b - both are the latest versions I can find. (phpmyadmin is 2.5.3.rc2) oh yes, abyss version is v1.1.6
Please let me know what I am doing wrong.
Thanks
-Alan |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Aug 28, 2003 12:03 pm Post subject: Re: how do I link php and mysql. |
|
|
It seems that your PHP configuration is in cause since it doesn't declare the MySQL extension.
Either open your PHP.ini file and declare the MySQL extension. Or use the Windows Installer version of PHP which has MySQL extension already included in it. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
asalmon -
Joined: 09 Aug 2003 Posts: 4
|
Posted: Thu Aug 28, 2003 4:42 pm Post subject: |
|
|
Thanks for your reply. I guess I'd better do the latter as I have no idea how to declare the mysql!
Alan |
|
Back to top |
|
 |
asalmon -
Joined: 09 Aug 2003 Posts: 4
|
Posted: Fri Aug 29, 2003 5:56 pm Post subject: |
|
|
I have installed php 4.3.2 and its working fine with mysql.
Thanks again for your help.
Alan |
|
Back to top |
|
 |
|