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
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)
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)
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)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)