loreakasmatzen_docker/data/web/habitat.php

51 lines
1.5 KiB
PHP
Raw Normal View History

2022-11-09 20:19:30 +01:00
<?php require_once("../inc/includes.php");?>
<?php
$head_title = _HABITAT_TITLE;
$head_description = _HABITAT_DESCRIPTION;
$head_keywords = _HABITAT_KEYWORDS;
require("../inc/head.php");
?>
<body>
<div id="mother">
<?php require('../inc/header.php');?><!-- /container_head -->
<div id="container">
<div id="wrapper">
<?php require('../inc/menu.php');?>
<div id="main">
<div id="main_in_top"><h2><?php echo _MENU462?></h2></div>
<div id="main_in">
<?php
$sql = "select * from habitats order by nombre_$idioma";
2024-03-25 17:07:25 +01:00
#$consulta = mysql_query($sql, $link);
$consulta = $mysqli->query($sql);
#$num_resultados = mysql_num_rows($consulta);
$num_resultados = $consulta->num_rows;
2022-11-09 20:19:30 +01:00
if ( $num_resultados>0) :
2024-03-25 17:07:25 +01:00
while($fila = $consulta->fetch_array()) :
#while($fila = mysql_fetch_array($consulta)) :
?>
2022-11-09 20:19:30 +01:00
<h3><strong><?=$fila["nombre_$idioma"]?></strong></h3>
<p><?=$fila["descripcion_$idioma"]?><br /><a href="habitat-listado.php?h=<?=$fila["id"]?>" title="<?php echo _MAS?>"><?php echo _MAS?></a></p>
<?php
endwhile;
endif;
?>
</div>
<div id="main_in_bottom"></div>
</div>
</div><!-- /wrapper -->
</div><!-- /container -->
<?php require('../inc/footer.php');?><!-- /footer -->
</div>
<?php require('../inc/analytics.php');?>
</body>
</html>