| Current Path : /var/www/html/mmishra/mm/www.uprtou.ac.in/ |
| Current File : /var/www/html/mmishra/mm/www.uprtou.ac.in/studycenter1.php |
<table width='100%'>
<?php
$str = $_REQUEST["str"];
echo "<tr><th>Enter Center Name <input type='text' name='str' size='20' value='$str'>
<input type='submit' name='submit' value='SUBMIT'></th></tr>";
if ($str) {
mysql_select_db("uprtou2010");
$tbl = 'studycenter';
echo "<tr><td>";
//$rs = mysql_query("select * from $tbl where centername like '%{$str}%' or programs like '%{$str}% order by centercode");
$rs = mysql_query("select * from $tbl where centername like '%{$str}%' order by centercode");
while ($o = mysql_fetch_object($rs)) {
$i++;
echo "<b>[ $i ]</b><br>
City Name: $o->cityname<br>
Center Code: $o->centercode<br>
Center Name: $o->centername<br>
Progams: $o->programs<br>
Contact: $o->contact<br>
<hr>";
}
echo "</td></tr>";
mysql_select_db("icdp");
}
?>
</table>