0% found this document useful (0 votes)
62 views

PHP With Mysql

The document discusses MySQL databases, how they store data in tables with columns and rows, how queries can retrieve specific record sets, and how PHP scripts connect and interact with MySQL databases using functions like mysql_connect() and mysql_close().

Uploaded by

dolby3d
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views

PHP With Mysql

The document discusses MySQL databases, how they store data in tables with columns and rows, how queries can retrieve specific record sets, and how PHP scripts connect and interact with MySQL databases using functions like mysql_connect() and mysql_close().

Uploaded by

dolby3d
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

4/6/2010

Web Engineering by Hassan Khan

 MySQL is the most popular open-source


database system.
 The data in MySQL is stored in database
objects called tables.
 A table is a collections of related data entries
and it consists of columns and rows.

Web Engineering by Hassan Khan

1
4/6/2010

 A database most often contains one or more


tables.
 Each table is identified by a name (e.g.
"Customers" or "Orders").
 Tables contain records (rows) with data.

Web Engineering by Hassan Khan

 A query is a question or a request.


 With MySQL, we can query a database for
specific information and have a record set
returned.

Web Engineering by Hassan Khan

2
4/6/2010

Web Engineering by Hassan Khan

 The free MySQL database is very often used with


PHP.
 Before you can access data in a database, you
must create a connection to the database.
 In PHP, this is done with the mysql_connect()
function.

Web Engineering by Hassan Khan

3
4/6/2010

Web Engineering by Hassan Khan

 The connection will be closed automatically


when the script ends.
 To close the connection before, use the
mysql_close() function

Web Engineering by Hassan Khan

4
4/6/2010

Web Engineering by Hassan Khan

Web Engineering by Hassan Khan

5
4/6/2010

Web Engineering by Hassan Khan

Web Engineering by Hassan Khan

6
4/6/2010

Web Engineering by Hassan Khan

Web Engineering by Hassan Khan

You might also like