1.

When a user confirms that he wishes to delete an entry, that entry’s URL is passed to a function which removes the entry from the __________(a) index.php(b) function.inc.php(c) database(d) admin.phpI had been asked this question during an online interview.The question is from Updating and Deleting Entries topic in chapter Objects and Databases in PHP of PHP

Answer»

The correct choice is (c) database

Easiest explanation: If the FUNCTION is successful, you send the user to the main page. If it fails, you stop the execution of the script and DISPLAY an ERROR, LETTING the user know that something went WRONG.



Discussion

No Comment Found

Related InterviewSolutions