Hi,
Anyone can help me?..must be easy for most of you.
instead of just displaying data from the database in a table,
i want to make it varies..some in textbox, some in text area.
this is my code:
<?php
$query= mysql_query(" SELECT * FROM office
WHERE officeID='" . $_GET['officeID'] . "'");
while($entry=mysql_fetch_array($query))
{
echo $entry['name'];
echo $entry['location'];
}
?>
it dsplays correct data from the database in this format:
abc33bar avenue
which refer to (name abc, location 33bar avenue ).
how make it like this?
name : (here is the dynamic data -name- from database)
location : location
I have construct a textfield with inital value like this :
echo <input name="name" type="text" value="<?php echo $entry; ?>"> ;
however it doesn't work.
thanks for your help