- Connect to the
database
- Unlike JDBC,
PHP does not need to
allocate variables for
communication with
the SQL server
- The variables will
be created inside the
connection object when
necessary....
|
-
Execute
a
query
(Which will return
a result set)
- Use a
loop statement
to obtain the
tuples
from the
result set
one at a time
- Free resources
(used in a query )
- Disconnect from the
mySQL server when
you done will
query processing
|