Jump to content
php.lv forumi

izdruka no DB un aplauz txt


RaitisRR

Recommended Posts

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

×
×
  • Create New...