Vidyalelo
PHP · Q29

Databases Handling

Programming · PHP · question 29

Q29

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
Answer
D.
admin.php

Answer: Option C

Solution

Answer: Option C
Solution:
If the function is successful, you send the user to the main page. If it fails, you stop execution of the script and display an error, letting the user know that something went wrong.