Mini Shell

Direktori : /home/funerariamayer/www/cms/
Upload File :
Current File : /home/funerariamayer/www/cms/pesquisa-entidade-fotos.php

<?
//echo "pesquisa fotos:".$cod_entidade;

require_once('conexao.php');
$sql="select cod_entidade_foto,foto
      from mayer_entidades_fotos
      where
      cod_empresa='$cod_empresa'
      and
      cod_entidade='$cod_entidade'
      ORDER BY ordem ASC
      ;";
$query=mysqli_query($con,$sql);
$totitens=@mysqli_num_rows($query);
if ($totitens!="")
{
 while($row = mysqli_fetch_array($query))
 {
   $cod_entidade_foto=$row['cod_entidade_foto'];
   $foto=$row['foto'];
?>
  <div class="foto_thumb">
  <a href="excluir-entidade-foto.php?cod_entidade_foto=<?=$cod_entidade_foto;?>&cod_entidade=<?=$cod_entidade;?>"> excluir </a>
   <br>
   <img height="128" src="../images/portfolio/entidades/<?=$foto?>" border="0">
  </div>
<?
 } //while($row = mysqli_fetch_array($query))
} //if ($totitens!="")
else
{
  echo "Nenhuma foto cadastrada para este entidade.";
} //else if ($totitens!="")
?>

<style type="text/css">
 .foto_thumb {
 display:table;
 float:left;
 background-color:#ffffff;
 border:1px solid #323232;
 width:200px;
 height:128px;
 text-align:center;
 }
</style>


Zerion Mini Shell 1.0