Parašė Zeck· 2010 Lie. 4 22:07:23
#91
Taigi turiu tokia panele
opentable("Atsitiktiniai serialai");
$result=dbquery("SELECT * FROM ".DB_PREFIX."news ORDER BY RAND() LIMIT 2");
if(dbrows($result)!=0){
while($data=dbarray($result)){
$result2 = dbquery("SELECT news_cat_name FROM ".DB_PREFIX."news_cats WHERE news_cat_id='$data[news_cat]'");
$category = dbresult($result2,0);
echo "<table cellpadding='5' cellspacing='0' width='100%' align='center'>
<tr>
<td><strong><center><a href='/".seoname(trimlink($data['news_subject'],20))."-rn".$data['news_id'].".htm' title='".$data['news_subject']."'
class='slink'>".trimlink($data[news_subject], 25)."</a></center></strong></td>
<tr>
<td><center><a href='/".seoname(trimlink($data['news_subject'],20))."-rn".$data['news_id'].".htm' title='".$data['news_subject']."'>
<img src='".$data['news_nuoroda']."' width='110px' height='150px'></center> </td>
</tr>
<tr>
</td>
</tr>
</table>\n";
}
}
closetable();
Taciau jos turini atvaizduoja vertikaliai t.y taip
O as noriu kad man atvaizduotu eiluteje ( horizontaliai) po 4
Taip
Kaip taip padaryti?
Redagavo Zeck· 2010 Lie. 4 22:07:40