[eluser]SoulM4n[/eluser]
Hi,
here is the code :
Code:
foreach ($records->result() as $row)
{
if (($j==1) or ($j==5) or ($j==9) or ($j==13) or (j==17))
{
echo "<tr>";
$opentag = true;
}
echo '<td align="center">';
$thumb = array('src'=>'portfoliofolders/'.$folder.'/thumb/'.$row->thumb, 'class'=>'gallerythumb', 'border'=>'0');
$image = base_url().'portfoliofolders/'.$folder.'/'.$row->image;
echo anchor($image,img($thumb),'rel="prettyPhoto[iframe]"');
echo '<div id="boxcommands">';
echo img('images/share.gif').' ';
echo img('images/addtofav.gif');
echo '</div>';
echo '</td>';
if (($j==4) or ($j==8) or ($j==12) or ($j==16) or ($j==20))
{
echo "</tr>";
$opentag=false;
}
$j++;
}
But i get the same problem opening the home page .. here is the code :
Code:
$thumb3 = array('src'=>'images/banner_web.jpg', 'class'=>'indexthumb');
echo '<td width="320" align="center">'.img($thumb3).'</td></tr>';
Sometimes the images being loaded perfeclty and sometimes not even if the src is always correct.
Thanks,
Marco