Chapter 15 - MySQL Integration Flashcards

1
Q

Function to connect to MySQL database

A

mysql_connect()

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

Function to select MySQL database

A

mysql_select_db()

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

Arguments of mysql_select_db()

A

database name, link identifier

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

mysql_pconnect()

A

Opens a persistent connection

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

mysql_change_user()

A

Changes the user logged in

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

mysql_list_dbs()

A

lists databases

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

mysql_list_tables()

A

Lists tables

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

mysql_fetch_…()

A

assoc = one result row as an associative array, row= one result row as a numerically indexed array

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

mysql_affected_rows()

A

returns the number of rows affected by the query

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

mysql_num_row()

A

Returns number of rows

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

mysql_fetch_object()

A

Returns result row as object

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

mysql_fetch_field()

A

gets column information from a result and returns it as an object

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

mysql_field_name()

A

Gets the name of a specified field

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

mysql_list_fields() or mysql_field_seek()

A

Sets result pointer to a specified field offset

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

mysql_num_fields()

A

gets the number of fields in a result

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

mysql_field_type()

A

Gets the data type of specified field

17
Q

mysql_field_len()

A

Returns the length of a field

18
Q

mysql_field_table()

A

Gets the name of the table that a specific field is in

19
Q

mysql_errno()

A

Returns the numerical value of error message