Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Created May 18, 2018 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uno-de-piera/d7bbc89d00155b40d5e3efbc58133cf6 to your computer and use it in GitHub Desktop.
Save uno-de-piera/d7bbc89d00155b40d5e3efbc58133cf6 to your computer and use it in GitHub Desktop.
<?php
//COMPROBAMOS SI HAY REGISTROS EN LA BUSQUEDA, SI NO LOS HAY, MOSATRAMOS UN MENSAJE DICIENDO QUE NO HAY RESULTADOS, EN OTRO CASO, MOSTRAMOS LOS RESULTADOS
if (count($buscame)==0)
{
echo "<h2>No hay resultados para su búsqueda...</h2>";
} else {
for($i=0;$i<sizeof($buscame);$i++)
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment