Don't forget to hit the ⭐ if you like this repo.
Here are the answers to the questions:
- a) MySQL
- a)
mysqli_connect()
- b)
mysqli_query()
- a) Structured Query Language
- c)
mysqli_fetch_assoc()
- b)
mysqli_num_rows()
- b)
mysqli_escape_string()
- a)
INSERT INTO
- b)
mysqli_insert_id()
- d) All of the above
- b)
mysqli_close()
- c) Both associative and numeric arrays
- d)
mysqli_stmt_execute()
- b)
mysqli_error()
- a)
$mysqli->affected_rows
- c)
pdo_transaction()
- a)
$pdo->lastInsertId()
- a)
UPDATE
- d) All of the above
- a) Retrieves all users with an age greater than 25
- a)
$pdo->rowCount()
- a) Prints the number of rows in the "users" table
- b)
mysqli_fetch_row()
- a) By specifying the column name in the fetch function
- b)
mysqli_free_result()
- b)
mysqli_num_fields($result)
- a)
DELETE FROM
- a) By specifying the field name in the fetch function
- a) Prints the number of rows in the "users" table
- b)
mysqli_error()
- b)
mysqli_fetch_all()
- b)
SELECT AUTO_INCREMENT FROM table
- b)
mysqli_escape_string()
- a)
$mysqli->affected_rows
- a) Prints the name of the user with ID 1
- a)
$pdo->rowCount()
- c)
$pdo->beginTransaction()
- a)
$mysqli->insert_id
- a) Prints "User inserted successfully" if the query is successful
- a)
$result->columnCount()
- c)
$result->fetch()
- a) Prints the number of fields (columns) in the "users" table
- a) By specifying the column name in the fetch function
- c)
$result->close()
- a)
$result->rowCount()
- a) Prints the number of users with an age greater than 25
- a)
$pdo->errorInfo()
- a)
$result->fetchAll()
- b)
SELECT AUTO_INCREMENT FROM table
- a) Prints "User deleted successfully" if the query is successful
Please create an Issue for any improvements, suggestions or errors in the content.
You can also contact me using Linkedin for any other queries or feedback.