Page 1 of 1

connecting PHP and MYSQL together

PostPosted: 02. August 2010 05:56
by Prasadmsvs
I have XAMPP running in my computer. But i am not able to connect both PHP and MYSQL together. I have read in a book to copy .dll files in to PHP main folder and uncomment some lines in PHP.ini file. Even though i did them i am not able to connect to MYSQL through PHP. mysql_connect() is always outputting unknown function.Both PHP and MYSQL are running separately with out any problems.MY OS is Windows XP.PHP scripts without database connectivity are running fine and MYSQL can be run without any problems. I could create databases and work with them. But PHP and MYSQL are not communicating. Plzz let me know if anybody know how to connect both these softwares

Re: connecting PHP and MYSQL together

PostPosted: 02. August 2010 06:41
by Altrea
Prasadmsvs wrote:I have XAMPP running in my computer. But i am not able to connect both of them.

both what? XAMPP and your computer?

Prasadmsvs wrote:I have read in a book to copy .dll files in to PHP main folder and uncomment some lines in PHP.ini file.

Thats completely nonesense. XAMPP comes out of the box with all mysql Modules and they are active by default. No need to copy or change something.

Prasadmsvs wrote:Both PHP and MYSQL are running separately with out any problems.

How did you tested this?

I don't know what OS you use.
I don't know what Books you mean.

Just do what the readme_en.txt textfile tells you. which comes with the Installation version of XAMPP.
And read the XAMPP for Windows FAQ