O'Reilly logo

PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide, Fourth Edition by Larry Ullman

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

9. Using PHP with MySQL

In This Chapter

Modifying the Template 266

Connecting to MySQL 268

Executing Simple Queries 273

Retrieving Query Results 281

Ensuring Secure SQL 285

Counting Returned Records 290

Updating Records with PHP 292

Review and Pursue 298

Now that you have a sufficient amount of PHP, SQL, and MySQL experience under your belt, it’s time to put all of the technologies together. PHP’s strong integration with MySQL is just one reason so many programmers have embraced it; it’s impressive how easily you can use the two together.

This chapter will use the existing sitename database—created in Chapter 5, “Introduction to SQL”—to build a PHP interface for interacting with the users table. The knowledge taught and the examples used here ...

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