Now that you’ve learned the basics of PHP as well as the basics of working with MySQL, you’re ready to make the two interact. Think of PHP as a conduit to MySQL—the commands you learned in the previous chapter are the same commands that you will send to MySQL in this chapter, only this time you’ll send them with PHP. In this chapter, you will learn
How to connect to MySQL using PHP
How to insert and select data through PHP scripts
If you have used previous versions of PHP, or current versions of PHP with older versions of MySQL, you likely are familiar with the
mysql_* family of functions. However, since the release of MySQL 4.1.3 it has become necessary to communicate with ...