MSV FM

dot.antimicrobial@66.96.161.157: ~ $
Path : /hermes/bosweb/b1705/trinix19.ipage.com/Backup/DoctorReview-n/
File Upload :
Current < : /hermes/bosweb/b1705/trinix19.ipage.com/Backup/DoctorReview-n/search.php

<?php
	include('dbconnect.php');
 $title=$_POST["title"];
 
  
 $sql="SELECT * FROM doctordetails WHERE doctorname LIKE '%$title%' or location LIKE '%$title%'";
$result = mysql_query($sql) or die(mysql_error());
	
 $found=mysql_num_rows($result);
 
 if($found>0){
    while($row=mysql_fetch_array($result)){
	
 	echo "<a href='doctor.php?did=$row[did]'>";
	echo"<div class='span3 text-center box' style='margin-bottom:20px;'>
				<h3> $row[doctorname] </h3>
				<h5> $row[location] </h5>
				Rating : $row[rating]
			</div>";
	echo "</a>";
	
    }    
 }
 
$sql="SELECT * FROM doctspecialist WHERE type LIKE '%$title%'";
$resul = mysql_query($sql) or die(mysql_error());
	
 $found=mysql_num_rows($resul);
 
 if($found>0){
    while($row=mysql_fetch_array($resul)){
		$did = $row['did'];
		$r=mysql_query("SELECT * FROM doctordetails WHERE did = '$did'");
		
			
		 $foun=mysql_num_rows($r);
		 
		 if($foun>0){
			while($row=mysql_fetch_array($r)){
		
 	echo "<a href='doctor.php?did=$row[did]'>";
	echo"<div class='span3 text-center box' style='margin-bottom:20px;'>
				<h3> $row[doctorname] </h3>
				<h5> $row[location] </h5>
				Rating : $row[rating]
			</div>";
	echo "</a>";
			}    
		 }
    }    
 }
 
 
 // ajax search
?>