Czy jest jakas mozliwosc wyswietlenia wszystkich rekordow z bazy danych, tak aby nie powtazaly sie trzy razy (tyle razy ile wynikło z funkcji foreach)?
<?php $count = 0; $result = $db->sql_query("SELECT * FROM ".$prefix."_ads_extrainfo"); while ($row = $db->sql_fetchrow($result)) { $name = $row['name']; foreach($extra_info_explode AS $klucz => $extra_info_frch) { if ($id == $extra_info_frch) { echo "<td width=\"25%\"><input checked type=\"checkbox\" name=\"ex[$id]\" value=\"1\"> $name<br /></td>\n"; $count++; if ($count == 4) { $count = 0; } } else { echo "<td width=\"25%\"><input checked type=\"checkbox\" name=\"ex[$id]\" value=\"1\"> $name<br /></td>\n"; $count++; if ($count == 4) { $count = 0; } } } } ?>