1.

Which method rolls back the present transaction?(a) commit()(b) undo()(c) mysqli_rollback()(d) rollback()The question was posed to me in a job interview.My question comes from Working with Databases-2 topic in section Objects and Databases in PHP of PHP

Answer»

The correct OPTION is (c) mysqli_rollback()

The explanation: The function mysqli_rollback() is used to ROLL back from the current transaction for the specified database CONNECTION. Its syntax is: mysqli_rollback(connection);

Rollback() was used in PREVIOUS version of PHP.



Discussion

No Comment Found

Related InterviewSolutions