Here is the code:
$job = $_GET['query'];
$result = mysql_query("SELECT * FROM team WHERE occupation LIKE '%$job%' ORDER BY id DESC");
$total = mysql_numrows($result);
print ($total);
I have several cells with matching search term ($job), but $total always returns 0 for some reason...