sign in


Forgot your password?


Why sign up?
- One account for five websites!
- Free access to Premium Codes
- Acess to cool web tools
- Ask and answer questions
- Stay ahead of other web developers
- and MUCH MORE!

Feel The Power

Php Code: A Function for Connecting to MySQL Server

The first step to working with the databases is craeting connection. You can do it within your codes, but professional programmers handles events by functions.
Here is a function to connect to MySQL server. This function returns true in success and false, otherwise. It also has capability to print the success or failure message. Enjoy!

If you don't know how to use this code or need more information Click here!

Online Users: 6
Total Online Users: 47
Recent Members: yuri , Ahmadullo, Ruqyahstor, Steven12345, dragoncitya
Twitter LinkedIn Youtube

Link to us:


Please put this code in your page.