PHP is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java, and Perl with a couple of unique PHP-specific features included. The goal of the language is to give web developers the ability to quickly write dynamically generated pages.
Let's get started. The first thing to do is connect to the database.The function to connect to MySQL is called mysql_connect. This function returns a resource which is a pointer to the database connection. It's also called a database handle, and we'll use it in later functions. Don't forget to replace your connection details.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.