RaitisRR Posted January 26, 2007 Author Report Share 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> Link to comment Share on other sites More sharing options...
RaitisRR Posted January 26, 2007 Author Report Share Posted January 26, 2007 un ka lai to pareizi dara ? sory par manu stulbumu es esmu ka nekaa iesaacejs... tnx pa help! Link to comment Share on other sites More sharing options...
andrisp Posted January 26, 2007 Report Share Posted January 26, 2007 Tev nemaz tā fja nekur netiek izsaukta, tāpēc neiet :) Link to comment Share on other sites More sharing options...
RaitisRR Posted January 26, 2007 Author Report Share Posted January 26, 2007 ok to es saprotu - bet ka lai izsauc ? Link to comment Share on other sites More sharing options...
Val Posted January 26, 2007 Report Share Posted January 26, 2007 $x=$row['post_text']; echo $x=sb($x, 97); kur tam jāatrodas, izdomā pats. Link to comment Share on other sites More sharing options...
RaitisRR Posted January 26, 2007 Author Report Share 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 ? :) Link to comment Share on other sites More sharing options...
bubu Posted January 26, 2007 Report Share Posted January 26, 2007 Tev tak jau #7 postā parādīja kā ir jārīkojas... Link to comment Share on other sites More sharing options...
Recommended Posts