Codice PHP:
if ($search!="")
 
$query=""SELECT FROM tabella WHERE name='$search'";