PHP Databases Handling
Which one of the following method is used to retrieve the number of rows affected by an INSERT, UPDATE, or DELETE query?

new_rows()
num_rows()
affected_rows()
changed_rows()

ANSWER DOWNLOAD EXAMIANS APP

PHP Databases Handling
What will happen at the end of the following sequence of SQL commands?
BEGIN TRANSACTION
DELETE FROM MYTABLE WHERE ID=1
DELETE FROM OTHERTABLE
ROLLBACK TRANSACTION

The contents of OTHERTABLE will be deleted, as will be all the contents of MYTABLE whose ID is 1
The contents of both OTHERTABLE and MYTABLE will be deleted
The contents of OTHERTABLE will be deleted
The database will remain unchanged

ANSWER DOWNLOAD EXAMIANS APP