<style>
 td{font-family:verdana;font-size:14;color:black;}
 th{font-family:verdana;font-size:14;color:white;background-color:#5b5858}
 body{background-color:ivory;}
 input
  {border-style:ridge;
   border-color:#22437f;
   background-color:white;
   height:25px;
   border-size=1;
   font-family:sans-serif;
   color:BLACK;
  }
</style><center>
<?
/*$link=mysqli_connect("localhost.localdomain","root");
mysqli_select_db("alpdb") or die ("<h3> Error:Database could not be connected-".mysqli_error());
*/
 include("opendb.php");
$result=mysqli_query($db,"select * from plopstock") or die(mysqli_error());
$row=mysqli_fetch_row($result) or die("Error".mysqli_error());
?>
<body onLoad=document.f1.ops.focus()>
<p>&nbsp;<p>&nbsp;<p>&nbsp;
<form name=f1 action='svopstock.php'>
<table bgcolor=silver>
<tr><td>Opening Stock </td><td><input type=text name=ops value='<?print $row[0]?>'></td></tr>
<tr><td>Closing Stock </td><td><input type=text name=cls value='<?print $row[1]?>'> </td></tr>
<tr><td colspan=2 align=center><input type=submit value='Update'>
<input type=button value='Cancel' onClick=document.location='blank.html'></td></tr>
</table>
</form>
