What am i doing wrong here (php mysql query)

can’t seem to figure this one out…
just trying to get num rows on query result and see if a match exists or not…

<?php

require_once('connVars.php');


$title = $_POST['titl'];

$data = mysql_query("SELECT * FROM entries WHERE entryName LIKE '$titl'")
or die(mysql_error());


$rows=(mysql_num_rows($data))
if($rows > 0)
{
$reply = "&reply=exists";
echo $reply
}else{
$reply = "&reply=nonexistent";
echo $reply;
}

?>