Page 1 of 1

cannot connect to mysql using php on this xp/home machine

PostPosted: 15. September 2005 05:45
by redstar8
Hi,

I'm getting Fatal error: Call to undefined function: mysql_connect() when I try to connect in a php script ?

- I'm running XAMPP 1.4.15 on xp/home
- I can stop start / start apache / mysql from the XAMPP control panel
- I can read the database using navicat
- I can bring up other web pages


Do I need to do something else too ?

thanks - XAMPP is a great service !

PostPosted: 16. September 2005 05:07
by redstar8
Hi,

- I had to make sure the only php.ini was in C:\xampp\apache\bin\php.ini dir ( and in other xampp dirs that are just used to still support php4 )

(I delete an old php.ini in c:/windows)

so I guess I don't have any excuse for not getting anything done now!