Mini Shell

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

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

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