You are on page 1of 3

<?

php
$con = mysql_connect("localhost","root","password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("dhanabriddhi", $con);
$con = mysql_connect("localhost","root","password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("dhannabriddhi", $con);
//$sql="select * from member";
$result = mysql_query("select * from member where dmfno='$_POST[dmfno]'");
while($rowval = mysql_fetch_array($result))
{
$dmfno= $rowval['dmfno'];
$name= $rowval['name'];
$no_of_unit= $rowval['no_of_unit'];
$date= $rowval[''];
$month= $rowval[''];
$unit_amount= $rowval[''];
$latefine= $rowval[''];
$others= $rowval[''];

}
mysql_close($con);
?>
<html>
<body>
<from >
<table style="color:purple;border-style:groove; height:150px;width:350px" >
<tr>
<td style="font-family:Copperplate Gothic Bold">&nbsp;</td>
</tr>
<tr>
<td style="color:red;background-color:aqua;" class="auto-style3">DMF NO:</td>
<td class="auto-style4">
<input id="Text1" type="text" value='<?php echo $dmfno; ?>'/></td>
</tr>

<tr>
<td style="color:red;background-color:aqua;" class="auto-style3">Name</td>
<td class="auto-style4">
<input id="Text2" type="text" value='<?php echo $name; ?>'/></td>
</tr>
<tr>
<td style="color:red;background-color:aqua;" class="auto-style3">No_of_Units:</td>
<td class="auto-style4">
<input id="Text3" type="text" value='<?php echo $no_of_units ?>' /></td>
</tr>
<tr>
<td style="color:red;background-color:aqua;" class="auto-style3">Date:</td>
<td class="auto-style4">
<input id="Text4" type="text" value='' /></td>
</tr>
<tr>
<td style="color:red;background-color:aqua;" class="auto-style3">Month:</td>
<td class="auto-style4">
<input id="Text5" type="text" value='' /></td>
</tr>
<tr>
<td style="color:red;background-color:aqua;" class="auto-style3">Unit Amount:</td>
<td class="auto-style4">
<input id="Text6" type="text" value='' ></td>
</tr>
<tr>
<td style="color:red;background-color:aqua;" class="auto-style3">Late Fine:</td>
<td class="auto-style4">
<input id="Text7" type="text" value=''/></td>
</tr>
<tr>
<td style="color:red;background-color:aqua;" class="auto-style3">Others:</td>
<td class="auto-style4">
<input id="Text8" type="text" value='' /></td>
</tr>

<tr>
<td></td>

</tr>
</table>
</form>
</body>
</html>

You might also like