include "cabecalho.inc"; require('conexao.php'); $query = "select nome, introducao, metodo, descricao, home, foto_img, desc_foto from modulo where id = 10"; 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); } ?>
|
|