Quote Originally Posted by youth_nation
sorry for being too late bt i tried different ways of an if statement bt nathing is working coz its my first time anwyas here is what i reached so far

if(isset($_POST['Submit']) && $_POST['Submit'] == 'Search')
{
$_POST['Submit']='';
$name=$_POST["name"];
$query="select * from $tb_name where name like '%$name%'order by date " ;
echo $query;
$result=mysql_query($query);
if($result=="null")
{echo "0 results for ur search ";}
else
{
while($rows=mysql_fetch_array($result))
{
echo"
<tr>
<td>".$rows['id']."</td><td>".$rows['name']."</td><td>".$rows['cell']."</td><td><a href='mailto:".$rows['email']."'>".$rows['email']."</a></td><td>".$rows['date']."</td>
</tr>
";
}
}



mysql_close();
}
What's the problem there? Did you make some debugging?