Ver original$consulta = "SELECT dato FROM tabla ";if(!empty($_GET["coche"])){ $consulta .= "WHERE coche = ".$_GET["coche"];}