Kurcze coś mi nie wychodzi czy ktoś mógłby pomóc ?
$i=0;
$ilosc=3;
echo"<tr bordercolor='white' border=0>"; {
$foto='./vedicart/'.$dane[2];
$percent_resizing = 50;
$new_width = round((($percent_resizing/100
)*$width)); $new_height = round((($percent_resizing/100
)*$height));
echo "<td valign='bottom' bordercolor='white' border=0> <a href='$foto' rel='lightbox[1]'><center>
<img src='$foto' width='$new_width' height='$new_height' border=0 style='margin-bottom: 13px;' align=top></center></a><div align=center><font color='#fa6602'>$dane[1]</font></div></td>";
$i++;
if ($i>=$ilosc && $orginalny[0]>500)
{
$ilosc=$ilosc+3; // tu chce by wyświetlały 3 obrazki
}
else if ($i>=$ilosc && $orginalny[0]<700)
{
$ilosc=$ilosc+2; // tu chce by wyświetlały się tylko 2 obrazki
}
}
Tak mam teraz napisany kod i to nie działa najlepiej :/ Sam już nie wiem jak to zrobić.