O'Reilly logo

Sams Teach Yourself PHP, MySQL by Julie C. Meloni

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, MySQL 4.1.3 (and subsequent versions) have new functionality and thus new communication ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required