Created survey.php

Fetched largest QID from DB corresponding to the UID and the options as well.