<?phpinclude("../../include/dbconnect.php");?>
<title>Bank Details Edit</title>
<body bgcolor="#ffffff" " topmargin=0>
<center>
<table cellpadding=0 cellspacing=4 width=590>
<tr>
<td style="padding:3px;" colspan=2 bgcolor="#93BEE2"><font ><b>Bank Master Edit</b></font></td>
</tr><tr valign="top"><td colspan=2>
<font >&nbsp;</font>
</td>
</tr>
</table>
<table border=0 cellpadding=3 cellspacing=4 width="590">
<form method="POST"  action="update.php">
<?php 	

$result=mysql_query("select * from banks where bankname = '$bankname' ");
$row1=mysql_fetch_row($result);
?>

<tr><td><font class="sbd"><b>Bank Code </b></font></td><td>   
 <input type="text" size="40" name="bankcode" value=<?php echo("'$row1[0]'");?>></td></tr>

<tr><td><font class="sbd"><b>Bank Name </b></font></td><td>   
 <input type="text" size="40" name="bankname" value=<?php echo("'$row1[1]'");?>></td></tr>
  
      
<tr><td><font class="sbd"><b>Address 1</b></font></td><td>            
<input type="text" size="40" name="address1" value=<?php echo("'$row1[2]'");?>></td></tr>
  
   
             
<tr><td><font class="sbd"><b>Address 2</b></font></td><td>           
  <input type="text" size="40" name="address2" value=<?php echo("'$row1[3]'");?>> </td></tr>
      
            
<tr><td><font class="sbd"><b>City</b></font></td><td>
<input type="text" size="40" name="city" value=<?php echo("'$row1[4]'");?>></td></tr>
            
      
   
<tr><td><font class="sbd"><b>State</b></font></td><td>             
<input type="text" size="40" name="state" value=<?php echo("'$row1[5]'");?>></td></tr>
   
<tr><td><font class="sbd"><b>Contact Person</b></font></td><td>      
<input type="text" size="40" name="contact" value=<?php echo("'$row1[6]'");?>></td></tr>
  
  
<tr><td><font class="sbd"><b>Telephone No</b></font></td><td> <input type="text" size="20" name="telno" value=<?php echo($row1[7]);?>></td></tr>
 
      
<tr><td><font class="sbd"><b>Fax No</b></font></td><td>                
<input type="text" size="20" name="fax" value=<?php echo("'$row1[8]'");?>></td></tr>
  
<tr><td><font class="sbd"><b>E-mail</b></font></td><td>                
<input type="text" size="40" name="email" value=<?php echo("'$row1[9]'");?>></td></tr>


<table cellpading=0 cellspacing=10 width= 50>
<tr>
<td>
 <blockquote>  <input type =submit name=submit value = "Update"></td> <td><input type =submit name=submit value = "Delete"></blockquote>
</table>

</table>
<br><br><font size=1><center><a href= "index.html">Return to index page</center></font>
</body>
</form>









