Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
olá pessoal!
Estou com um probleminha e preciso da ajuda de vocês. o meu light box abre mas não mostra as fotos. não entendo por quê.
/applications/core/interface/imageproxy/imageproxy.php?img=http://arleteimoveis.hospedagemdesites.ws/Capturar.PNG&key=1cff727940a8577c28a69e57b2b3096e3cb0c5ecd20c7a0be639dcc1f74259c2" alt="Capturar.PNG" />
o meu código onde está é o seguinte:
<table width="800" border="0" align="center" cellpadding="0" cellspacing="3" valign="top">
<tr>
<?//////////////////////////////////////////////////////////////////?>
<? //$link=mysql_connect("localhost", "root" ,"");
//mysql_select_db("james", $link);
$sql=("select * from fotos where (imovel='$cod_imovel') ORDER BY Id");
$resultado=mysql_query($sql) or die (mysql_error());
$indica_linha=0;
echo "<tr>";
if (mysql_num_rows($resultado) == 0){
echo "<br>\n";
echo "<td valign='top'><div align='center'><font size='1' face='Verdana, Arial, Helvetica, sans-serif'>Este imóvel não possui fotos !!!</font></div></td>\n";
}else{
?>
<!--<b><div align='center'><font size='1' face='Verdana, Arial, Helvetica, sans-serif'>Clique nas fotos para ampliar</font></div></b> -->
<?
}
for ($x=1; $x<=(mysql_num_rows($resultado)); $x++)
{
$mostra_resultado=mysql_fetch_object($resultado);
$rest = substr($mostra_resultado->link, 42, strlen($mostra_resultado->link));
//echo $rest;
if (file_exists($rest)){
$indica_linha++;
if($indica_linha > 12)print ("</TR><TR>");
$indica_linha=1;
}
$tipo_="";
$tipo1_="";
$teste = explode("/",$mostra_resultado->link);
$teste2=sizeof($teste);
$teste3=explode(" ",$teste[$teste2-1]);
$teste4=sizeof($teste3);
for ($i=0;$i<($teste2-1);$i++) {
$tipo_ = $tipo_.$teste[$i]."/";
}
for ($i=0;$i<($teste4);$i++) {
if ($i==$teste4-1){
$tipo1_ = $tipo1_.$teste3[$i];
}else{
$tipo1_ = $tipo1_.$teste3[$i]."%20";
}
}
$tipo1_= $tipo_.$tipo1_;
$tipo_= $tipo_.rawurlencode($teste[$teste2-1]);
?>
<td style="width:800px;" align="center">
<div align="center"><a href="<?=$rest;?>" rel="lightbox-fotos"><img src="<?=$rest;?>" style="border-radius: 5px;" width="50" height="40" border="0" alt='Clique para ampliar' /></a><br></div>
</td>
<?
}
}
$resultado=mysql_query("select * from imoveis where imovel='$cod_imovel'");
$mostra_resultado=mysql_fetch_object($resultado);
?>
<?//////////////////////////////////////////////////////////////////?>
</tr>
</table>
achei que fosse um problema de css ou html mas acho que deve ser no php
preciso muito de ajuda :mellow:
Carregando comentários...