WEB-DEV Flashcards

1
Q

The PHP MySQL connect function is used to connect to a_________

A

MySQL database server.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

It has the following syntax.

A

<?php;
$con = mysql connect ($db_server_name, $db_username, $db);
?>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Is the database connection resource variable.

A

“$con”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Is the function for php database connection

A

“mysql _connect (…)”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Is the name or IP address of the server hosting Mysql server.

A

“$server_name”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Is a valid user name in MySQL server.

A

“$username”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Is a valid associated with a user name in MySQL server.

A

”$”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The ________ function is used to select a database

A

mysqli_select_db

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

It has the following syntax.

A

<?php
mysqli_select_db ($con, $database_name);
?>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Is the database selection function that returns either true or false

A

“mysqli_select_db (…)”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Is the name of the database

A

“$database_name”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Is optional, it is used to pass in the server connection link

A

“$link_identifier”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

MySQLi CREATE DATABASE

A

TINGIN KA NALANG SA MODULE (MODULE 7)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Is a field attribute and it is being used because we do not want this Field to be NULL.

A

NOT NULL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Tells MySQLi to go ahead and add the next available number to the id field.

A

AUTO_INCREMENT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Is used to define a column as______
You can use multiple columns separated by comma to define a ________

A

PRIMARY KEY

17
Q

MySQLi _______ statement is used to insert data into MySQLi table.

A

INSERT INTO

18
Q

Below the syntax of INSERT INTO command

A

INSERT INTO table_name

19
Q

Statement is used to fetch data from the one or more tables.

A

MySQLi Select record

20
Q

We can retrieve records of all Fields or specified Fields.

A

MySQLi SELECT

21
Q

Statement is used to update existing records in a table.

A

MySQLi UPDATE RECORD

22
Q

Statement is used to delete existing records in a table.

A

MySQLi DELETE RECORD

23
Q

Statement is used to sort the results -set in ascending or descending order.

A

MySQLi ORDER By

24
Q

Statement is used with aggregate function as COUNT , MAX , MIN, SUM etc to group the result-set by one or more columns…

A

MySQLi GROUP By

25
Q

Clause is often used with the GROUP BY clause to filter groups based on a specified Condition.

A

MySQLi HAVING

26
Q

Condition allows wildcard to be used in the WHERE clause of a SELECT, INSERT UPDATE, or DELETE statement.

A

MySQLi LIKE

27
Q

This allows you to perform pattern matching.

A

MySQLi LIKE

28
Q

Allows you to match any string of any length ( including zero length )

A

%

29
Q

Allows you to match on a single character

A

-

30
Q

Optional. It allows you to test for literal instances of a wildcard character such as % or _.

A

escape _character

31
Q

If you do not provide the escape _character, MySQLi that ______ is the escape_character.

A

”"

32
Q

What is PHP

A

Hypertext preprocessor