how do I link php and mysql.

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
asalmon
-


Joined: 09 Aug 2003
Posts: 4

PostPosted: Wed Aug 27, 2003 8:38 pm    Post subject: how do I link php and mysql. Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Aug 28, 2003 12:03 pm    Post subject: Re: how do I link php and mysql. Reply with quote

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 View user's profile Send private message Send e-mail
asalmon
-


Joined: 09 Aug 2003
Posts: 4

PostPosted: Thu Aug 28, 2003 4:42 pm    Post subject: Reply with quote

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 View user's profile Send private message
asalmon
-


Joined: 09 Aug 2003
Posts: 4

PostPosted: Fri Aug 29, 2003 5:56 pm    Post subject: Reply with quote

I have installed php 4.3.2 and its working fine with mysql.

Thanks again for your help.

Alan
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group