Displaying a table needs basic HTML knowledge. If you want to learn the basics go to: www.w3schools.com
Here's how you do it:
...
if(isset($_POST['submit']) && !empty($_POST['submit'])){
$result = ""; //USED LATER
/*$term = $_POST['term']; THIS WORKS BUT FOR SECURITY ISSUES USE:*/
$term = mysql_real_escape_string($_POST['term']);//AVOID MYSQL INJECTION
$sql = mysql_query("SELECT * FROM `Find Your Gid` where Name like '%$term%'");
if (mysql_num_rows($sql) <= 0) {
// no results
//echo 'No results found.'; BETTER ECHO LATER
$error = "No result found";
} else if ($term ="") {
$error = "No name entered!";
} else {
$result .= "<table>";
$result .="<tr><td>Name</td><td>Gid</td><td>Giftable</td></tr>";
while ($row = mysql_fetch_array($sql)){
$result .= '<tr>';
$result .= '<td>'.$row['Name'].'</td>';
$result .= '<td>'.$row['Gid'].'</td>';
$result .= '<td>'.$row['Giftable'].'</td>';
$result .= '</tr>';
}
$result .= "</table>";
}
mysql_close();
}
...