Chapter 18. Interacting with MySQL Using PHP
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
MySQL Versus MySQLi Functions
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 ...
Get Sams Teach Yourself PHP, MySQL and Apache: All in One, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.