Exam 8: Manipulating Mysql Databases With Php
Exam 1: Getting Started With Php83 Questions
Exam 2: Functions and Control Structures83 Questions
Exam 3: Manipulating Strings83 Questions
Exam 4: Handling User Input83 Questions
Exam 5: Working With Files and Directories84 Questions
Exam 6: Manipulating Arrays83 Questions
Exam 7: Working With Databases and Mysql83 Questions
Exam 8: Manipulating Mysql Databases With Php84 Questions
Exam 9: Managing State Information83 Questions
Exam 10: Developing Object-Oriented Php79 Questions
Select questions type
When you are finished working with query results retrieved with the mysql_query() function, you should use the mysql_free_resultset() function to close the resultset.
Free
(True/False)
4.9/5
(24)
Correct Answer:
False
To prevent your code from trying to create a table that already exists, use the ____________________ command.
Free
(Short Answer)
4.9/5
(31)
Correct Answer:
SHOW TABLES LIKE
Almost every command sent to MySQL from PHP is executed with the ____ function.
Free
(Multiple Choice)
4.9/5
(32)
Correct Answer:
D
The ___ keyword is often used with the primary key to generate a unique id for each new row in a table.
(Multiple Choice)
4.7/5
(38)
The mysql_info() function only returns query information when you add ___ records with the INSERT keyword.
(Multiple Choice)
4.9/5
(38)
A result pointer is a special type of ____ that refers to the currently selected row in a resultset.
(Multiple Choice)
4.8/5
(32)
The mysql_info() function also returns information for LOAD DATA queries.
(True/False)
4.9/5
(34)
The mysql_error() function returns a value of FALSE if it detects an error.
(True/False)
4.9/5
(48)
You can suppress error messages in PHP using the _________________________ (@).
(Short Answer)
4.7/5
(36)
The ____ package is designed to work with MySQL version 4.1.3 and higher.
(Multiple Choice)
4.9/5
(39)
Because the ____________________ function exits the script immediately if an error occurs, any further script output is not displayed.
(Short Answer)
4.8/5
(30)
PHP, you use the mysql_send() function to send SQL statements to MySQL.
(True/False)
4.8/5
(33)
The _________________________ function returns the fields in the current row of a resultset into an associative array and moves the result pointer to the next row.
(Short Answer)
4.7/5
(35)
One of the most popular PEAR code modules is PEAR DB, which simplifies access between PHP and a database server.
(True/False)
4.9/5
(43)
The mysql_delete_db("dbname"[, connection]); script is used to delete a database.
(True/False)
4.7/5
(36)
The ____________________ function returns the number of rows in a query resultset.
(Short Answer)
4.9/5
(32)
The ____________________ function is used to select a database or change to a different database.
(Short Answer)
4.8/5
(34)
The mysql_fetch_assoc() function returns the fields into an associative array and uses each row name as the array key.
(True/False)
4.9/5
(33)
Showing 1 - 20 of 84
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)