0% found this document useful (0 votes)
17 views3 pages

Select DMF - Odt

The PHP code connects to a MySQL database called "dhanabriddhi", queries the "member" table for a user based on their "dmfno" POST parameter, and retrieves the user's data including "dmfno", "name", and "no_of_units". It then generates an HTML form populated with the user's data for display.

Uploaded by

BappaChandra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views3 pages

Select DMF - Odt

The PHP code connects to a MySQL database called "dhanabriddhi", queries the "member" table for a user based on their "dmfno" POST parameter, and retrieves the user's data including "dmfno", "name", and "no_of_units". It then generates an HTML form populated with the user's data for display.

Uploaded by

BappaChandra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 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