Código PHP:
<?php
include_once("../funcionesPHP/funciones.php");
echo "<table>
<caption>Recursos registrados en la base de datos.</caption>
<thead>
<tr>
<th>Código</th><th>Filo</th><th>Clase</th><th>Orden</th><th>Familia</th><th>Especie</th><th>Observaciones</th><th></th><th></th>
</tr>
</thead>
<tbody id=\"cuerpoTabla\">";
if(!isset($_GET["buscador"])){
echo tablaSeccion("recurso");
}else{
if(filter_var($_GET["buscador"] ,FILTER_VALIDATE_REGEXP,array("options"=>array("regexp"=>"/^([\wáéíóúÁÉÍÓÚñÑ]+[\wáéíóúÁÉÍÓÚñÑ \-\.]*)*$/")))!==false){
echo tablaSeccion("recurso", $_GET["buscador"]);
}else{
echo tablaSeccion("recurso");
}
}
echo "</tbody>
</table>";
?>