One of the most requested tutorials are those that explain how to connect and use a MySQL database server with PHP code. I have written a basic tutorial showing how to perform MySQL queries with PHP.
So you’re wanting to use a database with PHP to store your data? MySQL is a great open-source RDBMS (Relational Database Management System) that is widely available on many web hosting packages. Before we start make sure that you have access to both PHP and MySQL on your hosting package.