Workshop

The workshop is designed to help you anticipate possible questions, review what you've learned, and begin to put your knowledge into practice.

Quiz

1:What is the primary function used to make the connection between PHP and MySQL, and what information is necessary?
2:Which PHP function retrieves a MySQL error message?
3:Which PHP function is used to count the number of records in a result set?

Answers

A1: The mysql_connect() function creates a connection to MySQL and requires the hostname, username, and password.
A2: The mysql_error() function returns a MySQL error message.
A3: The mysql_numrows() function counts the number of records in a resultset.

Get Sams Teach Yourself PHP, MySQL® and Apache All in One now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.