if($id==1) echo "Anterior"; else echo "Anterior"; ?> Restaurantes - Foto if($id==21) echo "Siguiente"; else echo "Siguiente"; ?>