Presentation is loading. Please wait.

Presentation is loading. Please wait.

PHP and MySQL.

Similar presentations


Presentation on theme: "PHP and MySQL."— Presentation transcript:

1 PHP and MySQL

2 What is the Relationship between PHP and MySQL?
PHP has the ability to connect to and manipulate databases. The most popular database system that is used with PHP is called MySQL. MySQL is a free database system and is supported by most servers.

3 What is a Database? A database is a way to store lots of information, such as the names and addresses of your contacts. There are several different management configurations for a database system: hierarchical, network, flat file, and relational. The shared goal of a database is to allow data to be organized for easy retrieval and manipulation for many users. A relational database is the most common method for storing data.

4 Relational Database: MySQL
A relational database is the most common method for storing data. MySQL is a relational database. MySQL stores data in tables. A table is structured to organize data in records based on attributes. A language called SQL is the international standard language used almost universally with relational databases to perform queries and to manipulate data.

5 MySQL Table When you create a database table, you are creating a structure like this: ID FirstName LastName Major Bobo Baca Math Suzy Green CS Nick Gron Chemistry The columns (ID, FirstName, LastName) are called Fields. The rows are called Records. Each record is a separate entry. Each record must be uniquely identified by a Field or a group of fields. A single database can contain many tables, and they can be linked together.

6 Creating a MySQL Database
Use phpMyAdmin to build a single Table Database. The database will be called addressbook and the table will be called friend. The table will include the following attributes: First name Last name Phone Birthday – A record will identified by this primary unique key


Download ppt "PHP and MySQL."

Similar presentations


Ads by Google