Cant get this one
| From: | Mike | Date: | Thu, 01 Feb 2001 16:33:51 +0000 |
| Subject: | Cant get this one | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-37653@lists.php.net to get a copy of this message | ||
Im trying to create an edit page for database records on the fly.I get all
the fieldnames and all the textboxes but only the first textbox has data.the
rest are always empty.any suggestions?
for ($i =0;$i<mysql_num_fields($result);$i++)
{
$row = mysql_fetch_row($result);
$name=mysql_field_name($result,$i);
echo "<p>$name<input type='text' value='$row[$i]'
name='T1'
size='20'></p>";
}
Thanks
Mike P
mpeloso@princeton.edu