Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/icure/patient/
Upload File :
Current File : /var/www/html/mmishra/icure/patient/hospitals.inc

<h3 align='left'>Recognized Hospitals</h3>
<center>
<?php

$tbl = 'hospitals';

$rs = mysql_query("select hos_name as hospital,contact,address,date_creation as dated from $tbl order by hos_name");
if (mysql_num_rows($rs)) {
	$colHeads = mysql_num_fields($rs);

        echo "<table border='1' width='90%'><tr><th>Sr</th>";

        for ($i=0; $i < $colHeads; $i++) { // Header
        	$fld = ucwords(str_replace("_"," ",mysql_field_name($rs, $i)));
                echo "<th>$fld</th>";
        }
        echo "</tr>";

        while ($row = mysql_fetch_row($rs)) { //data
        	$j++;
                echo "<tr><td>$j</td><td>".implode($row,'</td><td>')."</td></tr>";
        }
       	echo "</table>";
}

?>
</center>