Exam 8: Manipulating Mysql Databases With Php

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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:
Verified

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:
Verified

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:
Verified

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)

To delete a database, use the ____ function.

(Multiple Choice)
4.8/5
(36)

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)

To close a database connection, use ____.

(Multiple Choice)
4.8/5
(35)

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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)