you have $row = mysql_fetch_array($result). Send this back to the html page and display the values.
For e.g. if you were sending the result row as a string like this "Which of the following is the capital of India#Mumbai#Chennai#New Delhi#Pune#New Delhi#2" then once you have received this string in your calling html page, split this string (maybe using explode()) and assign each of the values to the appropriate fields.