Test Your Knowledge: Questions
- Question 10-1
What is the standard PHP function for connecting to a MySQL database?
- Question 10-2
When is the
mysql_result
function not optimal?- Question 10-3
Give one reason why using the
POST
form method is usually better thanGET
.- Question 10-4
How can you determine the last entered value of an
AUTO_INCREMENT
column?- Question 10-5
Which PHP function escapes a string, making it suitable for use with MySQL?
- Question 10-6
Which function can be used to prevent Cross Site Scripting injection attacks?
See the section Chapter 10 Answers in Appendix A for the answers to these questions.
Get Learning PHP, MySQL, and JavaScript 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.