Witam
Mam tabele ktora laduje z bazy mysql dane typu dane nagówek i foto, chodzi mi o to jak wykonac tabele ktora bedzie co 5 pozycji kolejne 5 przenosila pod spód itd...
Z grory dziekuje za pomoc:)
<?php // recent5 can act as a plugin for other extensions so include the language here,
too if(file_exists($mainframe->getCfg('absolute_path').'/components/com_marketplace/language/'.$mainframe->getCfg('lang').'.php')) { require_once($mainframe->getCfg('absolute_path').'/components/com_marketplace/language/'.$mainframe->getCfg('lang').'.php'); } else { require_once($mainframe->getCfg('absolute_path').'/components/com_marketplace/language/english.php'); } $database->setQuery("SELECT a.id, a.category, a.ad_headline, a.ad_headline, a.ad_condition, date
_format( a.date_created, '%d.%m.%Y' ) AS af_date, b.name" . "n FROM #__marketplace_ads AS a, " . "n #__marketplace_categories AS b WHERE b.published='1' AND a.published='1' AND a.category = b.id AND a.ad_image > '0'" . "n ORDER BY a.id DESC " . "n LIMIT 10 "); $meslist = $database->loadObjectList(); echo JOO_RECENT5; foreach ($meslist as $mes){ echo "<a href=".sefRelToAbs( "index.php?option=com_marketplace&page=show_ad&catid=$mes->category&adid=$mes->id&Itemid=$Itemid").">"; $a_pic_jpg = $mosConfig_absolute_path."/components/com_marketplace/images/entries/".$mes->id."a_t.jpg"; $a_pic_png = $mosConfig_absolute_path."/components/com_marketplace/images/entries/".$mes->id."a_t.png"; $a_pic_gif = $mosConfig_absolute_path."/components/com_marketplace/images/entries/".$mes->id."a_t.gif"; $b_pic_jpg = $mosConfig_absolute_path."/components/com_marketplace/images/entries/".$mes->id."b_t.jpg"; $b_pic_png = $mosConfig_absolute_path."/components/com_marketplace/images/entries/".$mes->id."b_t.png"; $b_pic_gif = $mosConfig_absolute_path."/components/com_marketplace/images/entries/".$mes->id."b_t.gif"; $c_pic_jpg = $mosConfig_absolute_path."/components/com_marketplace/images/entries/".$mes->id."c_t.jpg"; $c_pic_png = $mosConfig_absolute_path."/components/com_marketplace/images/entries/".$mes->id."c_t.png"; $c_pic_gif = $mosConfig_absolute_path."/components/com_marketplace/images/entries/".$mes->id."c_t.gif"; $boolPicFound = 0; echo "<img src='".$mosConfig_live_site."/components/com_marketplace/images/entries/".$mes->id."a_t.jpg"."' align='center' border='0'>"; $boolPicFound = 1; } else { echo "<img src='".$mosConfig_live_site."/components/com_marketplace/images/entries/".$mes->id."a_t.png"."' align='center' border='0'>"; $boolPicFound = 1; } else { echo "<img src='".$mosConfig_live_site."/components/com_marketplace/images/entries/".$mes->id."a_t.gif"."' align='center' border='0'>"; $boolPicFound = 1; } } } if ( $boolPicFound == 0) { echo "<img src='".$mosConfig_live_site."/components/com_marketplace/images/entries/".$mes->id."b_t.jpg"."' align='center' border='0'>"; $boolPicFound = 1; } else { echo "<img src='".$mosConfig_live_site."/components/com_marketplace/images/entries/".$mes->id."b_t.png"."' align='center' border='0'>"; $boolPicFound = 1; } else { echo "<img src='".$mosConfig_live_site."/components/com_marketplace/images/entries/".$mes->id."b_t.gif"."' align='center' border='0'>"; $boolPicFound = 1; } } } } if ( $boolPicFound == 0) { echo "<img src='".$mosConfig_live_site."/components/com_marketplace/images/entries/".$mes->id."c_t.jpg"."' align='center' border='0'>"; } else { echo "<img src='".$mosConfig_live_site."/components/com_marketplace/images/entries/".$mes->id."c_t.png"."' align='center' border='0'>"; } else { echo "<img src='".$mosConfig_live_site."/components/com_marketplace/images/entries/".$mes->id."c_t.gif"."' align='center' border='0'>"; } } } } echo "<a href=".sefRelToAbs( "index.php?option=com_marketplace&page=show_ad&catid=$mes->category&adid=$mes->id&Itemid=$Itemid").">"; } else { } } ?>
<?php ?>
<?php echo '<BODY> <script language="JavaScript" src="template/overlib.js"></script> </BODY> <td><a href="show.php?file=' . $com['name'] . '"><img width="100" border="0" height="100" src="upload/' . $com['name'] . '" /></a><br /><a href="index.php?page=login&step=code&id=' . $com['id'] . '" >Pokaż kody</a> | <a href="ndex.php?page=login&step=del&id=' . $com['id'] . '">Usuń</a> <q onmouseover="overlib('<center><b>Informacje o zdjęciu </b></center><br><br>Nazwa:' . $waga . '<br> Rozmiar: kb', FGCOLOR, '#E6EFEAA', BGCOLOR, '#FFFFFF', TEXTCOLOR, '#000000', STATUS, 'Dymek zwykły')" onmouseout="nd();">info</q> </td>'; $i++; } ?>
<?php $i++; ?>
<?php $i = 0; { $i++; if( ( $i % 3 ) == 0 ) { } } ?>