RaitisRR Posted January 26, 2007 Author Report Posted January 26, 2007 Izmainiju viss tas pac nekadas izmainas nau redzamas... :( <table width="100%" border="0"> <?php function sb($t,$len="100"){ if(strlen($t) > $len){ $t = substr($t, 0, $len)."..."; } return $t; } $result = mysql_query("SELECT * FROM phpbb_posts_text ORDER BY `post_id` ASC LIMIT 25 "); while ($row = mysql_fetch_assoc($result)) { ?> <td><b><a href="/phpBB2/viewtopic.php?t=<?php echo $row['post_id']; ?>"><?php echo $row['post_subject']; ?></a></b></td> <tr><td><?php echo $row['post_text']; ?></td></tr> <?php } ?> </table>
RaitisRR Posted January 26, 2007 Author Report Posted January 26, 2007 un ka lai to pareizi dara ? sory par manu stulbumu es esmu ka nekaa iesaacejs... tnx pa help!
andrisp Posted January 26, 2007 Report Posted January 26, 2007 Tev nemaz tā fja nekur netiek izsaukta, tāpēc neiet :)
RaitisRR Posted January 26, 2007 Author Report Posted January 26, 2007 ok to es saprotu - bet ka lai izsauc ?
Val Posted January 26, 2007 Report Posted January 26, 2007 $x=$row['post_text']; echo $x=sb($x, 97); kur tam jāatrodas, izdomā pats.
RaitisRR Posted January 26, 2007 Author Report Posted January 26, 2007 paldies ! tagad vis funkcione :) sory ka ta sejos jums klat, bet tak paliidziiba kkur jameklee... un kur gan citur ja ne te ? :)
bubu Posted January 26, 2007 Report Posted January 26, 2007 Tev tak jau #7 postā parādīja kā ir jārīkojas...
Recommended Posts