Exam 8: Manipulating Mysql Databases With Php

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

With an INSERT query, the ___ function returns the number of records added and duplicated along with the number of warnings.

(Multiple Choice)
4.8/5
(43)

When adding a record to a table, you can specify ____________________ in any fields for which you do not have a value.

(Short Answer)
4.8/5
(46)

You pass the mysql_close() function the database ____________________ variable to close the database.

(Short Answer)
4.9/5
(36)

To delete records in a table, use the DELETE and WHERE keywords with the mysql_query() function.

(True/False)
4.8/5
(34)

If you are connecting to an instance of the MySQL database server that is running on the same server as the PHP scripting engine, use a value of ____________________ or "127.0.0.1" for the host argument.

(Short Answer)
4.9/5
(35)

The error control operator disables error checking.

(True/False)
4.9/5
(36)

To add multiple records to a database from an external file, you use the ____ statement with the name of the local text file that contains the records you want to add.

(Multiple Choice)
4.9/5
(44)

To create a table, use the ____________________ statement with the mysql_query() function.

(Short Answer)
4.9/5
(33)

To delete all the records in a table, you use the DELETE statement but omit the ____________________ keyword.

(Short Answer)
4.8/5
(37)

The mysqli package is the object-oriented equivalent of the mysql package.

(True/False)
4.8/5
(42)

The ____________________ function returns the number of rows in a query result.

(Short Answer)
4.9/5
(39)

The mysql_close() function is used to explicitly close a database connection.

(True/False)
4.9/5
(25)

To change records in a table, use the UPDATE keyword to specify the name of the table to update and the ___ keyword to specify the value to assign to the fields in the records that match the condition in the WHERE keyword.

(Multiple Choice)
4.8/5
(46)

To delete records in a table, use the keywords ____.

(Multiple Choice)
4.9/5
(42)

The NOT NULL keywords are often used with primary keys to require that a field include a value.

(True/False)
4.8/5
(40)

The mysql_connect() function returns a 1 if it connects to the database successfully or 0 if it doesn't.

(True/False)
4.8/5
(43)

The ____ command with a mysql_query() function executes successfully if the table already exists.

(Multiple Choice)
4.8/5
(31)

PEAR stands for ________________________________________.

(Short Answer)
4.7/5
(32)

A list of records that are returned from a query is called a resultset.

(True/False)
4.9/5
(32)

The ___ function returns a text string describing the error in PHP code.

(Multiple Choice)
4.9/5
(31)
Showing 21 - 40 of 84
close modal

Filters

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