assigning values to html elements from fields of a database

Codes here !

Moderators: macek, egami, gesf

Post Reply
johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: assigning values to html elements from fields of a datab

Post by johnj » Tue Jul 09, 2013 7:38 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests