Workshop


The workshop is designed to help you anticipate possible questions, review what you've learned, and begin putting 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 the text of a MySQL error message?

3.

Which PHP function is used to count the number of records in a resultset?

Answers

1.

The mysqli_connect() function creates a connection to MySQL and requires the hostname, username, and password.

2.

The mysqli_error() function returns a MySQL error message.

3.

The mysqli_num_rows() function counts the number of records in a resultset.




Sams Teach Yourself PHP, MySQL And Apache All in One
Sams Teach Yourself PHP, MySQL and Apache All in One (3rd Edition)
ISBN: 0672328739
EAN: 2147483647
Year: 2004
Pages: 327

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net