Chapter 7. Using PHP with MySQL


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, and you'll be amazed at how easily you can use the two together.

In this chapter I will use the existing sitename databasecreated in Chapter 4, "Introduction to SQL and MySQL"to build a PHP interface for interacting with the users table. The knowledge taught and the examples used here will be the basis for all of your PHP-MySQL Web applications, as the principles involved are the same for any PHP-MySQL interaction.

Before heading into this chapter, you should be comfortable with everything covered in the first four chapters. Also, understanding the error debugging and handling techniques covered in Chapter 6 will make the learning process easier. Finally, remember that you need a PHP-enabled Web server and access to a running MySQL server in order to test the following examples.



    PHP and MySQL for Dynamic Web Sites. Visual QuickPro Guide
    PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (2nd Edition)
    ISBN: 0321336577
    EAN: 2147483647
    Year: 2005
    Pages: 166
    Authors: Larry Ullman

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net