Hi

mysql_connect is not working though mysqli_connect is working.

Both are enabled in configuration file.

Please help.

Thanks

What error message does it return ?

Hi

mysql_connect is not working though mysqli_connect is working.

Both are enabled in configuration file.

Please help.

Thanks

If I use this

localhost:/tmp/mysql5.sock

instead of localhost then it works.

Thanks

hi,
As i m not able to understand Ur prob clearly. So for the same,you can use die()function to understand the mysql error while connecting....

humm correct,
i admit with monica singh.

you should have to use die() function on query running time.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.