Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

PHP and MYsQL- Creating a database Connection

Share this post!
 Vote this!

You will be using this sample of code in all php pages which needs a connection to a database. The code below (it is self-explanatory) authenticate your script with the database server. For ease of use, always create a php file (example dbconnect.php) with the connection details and then include this file within your other php pages where needed.


More...

0 comments:

Post a Comment