Þetta ætti að gefa þér hugmyndina…
<b>
<?
$limit = 50;
if( !isset( $_GET['id'] ) )
{
$query = mysql_query( “SELECT * FROM greinar” );
while( $myrow = mysql_fetch_assoc( $query ) )
{
if( strlen( $myrow['texti'] ) > $limit )
{
echo substr( $myrow['texti'], 0, $limit ) . ‘… <a href="?id=’ . $myrow['id'] . ‘">Meira</a>’;
}
else
{
echo $myrow['texti'];
}
echo ‘<br><br>’;
}
}
else
{
$query = mysql_query( "SELECT * FROM greinar WHERE id = '{$_GET['id']}'" );
$myrow = mysql_fetch_assoc( $query );
echo $myrow['texti'];
}
?>
</b><br><br><b>» [<a href="http://www.tval.tk">TVAL</a>]Aram<u>i</u>s</
Gaui