include "cabecalho.inc";
require('conexao.php');
$query = "select nome, introducao, metodo, descricao, home, foto_img, desc_foto from modulo where id = 9";
if ($result = mysqli_query($conexao, $query)) {
/* fetch associative array */
$linha = mysqli_fetch_row($result) ;
$nome = $linha[0];
$introducao = $linha[1];
$metodo = $linha[2];
$descricao = $linha[3];
$home = $linha[4];
$foto = $linha[5];
if ($linha[6] != "")
$desc_foto = $linha[6];
else
$desc_foto = "Foto Ilustrativa";
mysqli_free_result($result);
/* free result set */
//mysqli_free_result($result);
}
?>
|
|
$query = "select foto_img, descricao from foto where id_modulo = 9";
if ($result = mysqli_query($conexao, $query)) {
echo '';
$imagens = array();
$i = 0;
while ($linha = mysqli_fetch_row($result)) {
// echo $i;
$img_template = '
' .$linha[1]. '
';
echo $img_template;
$i = $i + 1;
}
?>
❮
❯
for ( $s=0; $s < $i ; $s++ ) { ?>
} ?>
} ?>
|
|
include "rodape.inc"; ?>