In this article we’ll try to achieve three things:
1) Connect to MySQL using PHP
2) Create a database and table in MySQL
3) Connect to MySQL using PHP and fetch / retrieve data from the database
Scope of this article is to guide beginners who have just started PHP programming and have never tried to connect to any database using PHP, although PHP have the capability to connect to MySQL, MySQLi, PostGRESQL, Oracle and other number of databases today we’ll only discuss about PHP and MySQL connectivity and the development environment considered is XAMPP on Windows. [Read more…]