1.

You need to check whether ______ is set, to determine whether you’re editing an entry or creating a new one.(a) $_GET[‘url’](b) $_SET[‘url’](c) $_GET[‘admin’](d) $_SET[‘admin’]The question was posed to me during an interview.My question is based upon Updating and Deleting Entries topic in portion Objects and Databases in PHP of PHP

Answer»

Correct CHOICE is (a) $_GET[‘url’]

The EXPLANATION is: If an entry is being EDITED, you need to load the existing entry data and SAVE each piece in a variable.



Discussion

No Comment Found

Related InterviewSolutions