O'Reilly logo

PHP and MySQL by Example by Marko Gargenta, Ellie Quigley

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 15PHP and MySQL Integration

Image

15.1 Introduction

The user has filled out a form and submitted it. It contains a list of items he or she wants to purchase. The information for that user is stored in a database table called “customers”. You want to retrieve all the orders and product information for that customer from the database and display selected data on the Web page directly from your PHP script. Now you will learn how to integrate PHP and MySQL.

PHP provides built-in functions that allow all the necessary operations for opening and selecting the database, and for sending it SQL queries to create tables, update and delete ...

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