<?php
;
include("include/dbconnect.php");
$uname=$_SESSION['uname'];
extract($_POST);
?>
<html>
<head>
<title><?php include("include/title.php"); ?></title>
<link href="style.css" rel="stylesheet" type="text/css">
<script language="javascript" src="include/menu.js"></script>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
    <tr>
      <td align="center"><?php include("include/header.php"); ?></td>
    </tr>
    <tr>
      <td align="left" class="subhead"><?php include("include/link_admin.php"); ?></td>
    </tr>
    <tr>
      <td align="center" valign="top"><p class="txt1">&nbsp;</p>
        <h3>View Hospital Details</h3>
        <p><?php
		
		
		$select = mysql_query("SELECT * FROM hospitel  ORDER BY id DESC") or die("select quee error".mysql_error());
		?></p>
        <table width="80%" height="78" border="0" align="center">
          <tr align="center" bgcolor="#999999">
            <th bgcolor="#DDDDDD" scope="col">Sno:</th>
            <th bgcolor="#DDDDDD" scope="col"><LABEL for="checkbox_row_2">Hospital Name </LABEL></th>
            <th bgcolor="#DDDDDD" scope="col">Address </th>
            <th bgcolor="#DDDDDD" scope="col">Contact no</th>
            <th bgcolor="#DDDDDD" scope="col">Email</th>
        
           <!-- <th bgcolor="#DDDDDD" scope="col">Delivery</th>-->
          </tr>
		  <?php
		  $p = 0;
		  while($row = mysql_fetch_array($select)){
		  $p++;
		  ?>
          <tr align="center" bgcolor="#CCCCFF">
            <td><?php echo $p; ?></td>
            <td><?php echo $row['name']; ?></td>
            <td><?php echo $row['address']; ?></td>
            <td><?php echo $row['contact']; ?></td>
            <td><?php echo $row['email']; ?></td>
            
            
      
    <!-- <td><a href="delivered.php?act=ok&id=<?php echo $row['pid']; ?>">Click</a></td>-->
          </tr>
		  <?php
		  }
		  ?>
        </table>
        <p>&nbsp;</p>
		<p class="txt1">&nbsp;</p>
        <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p></p></td>
    </tr>
    <tr>
      <td align="center" class="subhead">&nbsp;</td>
    </tr>
  </table>
</form>
</body>
</html>
