الشيفرة تطلع مقلوبة
<?php
$s=mysql_query("select * from hospital where id=$row[hid]");
while($ro=mysql_fetch_array($s))
{
?>
<td class="center"><?php echo $ro['hosname']; }?></td>
<?php
$s=mysql_query("select * from clinec where id=$row[cid]");
while($ro=mysql_fetch_array($s))
{
?>
<td class="center"><?php echo $ro['Cname']; }?></td>
<?php
$ret=mysql_query("select * from testt where id=$row[tid]");
while ($re=mysql_fetch_array($ret)) {
?>
<td><?php echo $re['testname'];}?></td>
<td><form action="" method="post">
<input type="text" value="<?php echo $re['result']; ?>" name="testname" class="form-control wd-450" >
<?php
$ret=mysql_query("select * from testt where id=$row[tid]");
while ($re=mysql_fetch_array($ret)) {
?>
<button type="submit" value="<?php echo $re['id']; }?>" name="submitt" class="btn btn-primary"> حفظ</button>
<form></td/>
</tr>
<?php }?>