this is my search_candidate.php file
<?php
$name = $_GET['name'];
$sql = "SELECT * FROM candidates WHERE Name = $name";
$query = mysql_query( $sql );
if(mysql_num_rows($query) == "")
{
echo "no result found";
}
echo "<table>";
echo "<thead></thead>";
while( $row = mysql_fetch_array( $query ) )
{
echo "<tr></tr>";
}
echo "</table>";
?>