<? session_start();

include("../opendb.php");
?>
<style>
body,td{font-family:'arial narrow';letter-spacing:1;}
tr{background-color:c1d7bb}
.mnu{margin-left:5}
</style>
<body bgcolor='ivory'>

<CENTER>
<BR>
<FORM ACTION='svscheme.php' METHOD='POST'>
<table cellspacing=1 cellpadding=1 bgcolor=green>
<tr><td align=center>
<table>
<tr><td colspan=2 align=center>SCHEME MASTER</TD></TR>
<tr><td>Scheme Name </td><td><input type=text name='sname' size=40></td></tr>
<TR><TD COLSPAN=2 ALIGN=CENTER><INPUT TYPE=SUBMIT name='submit' VALUE='  SAVE  '></TD></TR>

</table>
</td></tr>
</table>
</form>

<br>
<?
$result=mysqli_query($db,"select * from schememaster order by sname")or die(mysqli_error());
print "<table cellspacing=1 cellpadding=1 border=1>";
print "<th> No.<th>Seg. Name";

$i=1;
while($row=mysqli_fetch_row($result))
{
 print "<tr><td>".$i++."</td><td>$row[1]</td></tr>";
}
?>
</table>
