connecting PHP and MYSQL together

Problems with the Windows version of XAMPP, questions, comments, and anything related.

connecting PHP and MYSQL together

Postby Prasadmsvs » 02. August 2010 05:56

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
Last edited by Prasadmsvs on 05. August 2010 09:04, edited 1 time in total.
Prasadmsvs
 
Posts: 1
Joined: 02. August 2010 05:40

Re: connecting PHP and MYSQL together

Postby Altrea » 02. August 2010 06:41

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8298
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 55 guests