Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Conexão com o Banco de Dados
- require('config.php');
- // Seleção de Banco de Dados para consulta
- $referencia = $_GET["imovel"];
- $dados_imovel = mysql_fetch_array(mysql_query("SELECT * FROM tbl_imoveis WHERE id = '$referencia'"));
- $caracteristicas = $dados_imovel["im_caracteristicas"];
- ?>
- <?
- $im_carac = "$caracteristicas";
- $op = explode("|",$im_carac);
- $total = count($op);
- $colunas = "4";
- if ($total>0) {
- for ($i = 0; $i < $total; $i++) {
- if (($i%$colunas)==0) {
- $colspan = $colunas+$colunas+$colunas;
- ?>
- <? }?>
- <?
- $opc = mysql_query("SELECT * FROM tbl_caracteristicas WHERE id='$op[$i]'");
- $dados = mysql_fetch_array($opc);
- echo "<div class=\"one-fourth column-last\">
- <ul class=\"check\">
- <li>$dados[caracteristica]</li>
- </ul>
- </div>";
- }
- ?>
- <? }?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement