inde i min egen kode hvor der står :
$query = mysql_query("SELECT * FROM tagwall ORDER BY id DESC LIMIT $_GET[vis], $pagelimit") or die(mysql_error());
while($row = mysql_fetch_array($query)) {
echo"
<table border='$tableborder' width='$tablewidth' cellspacing='$tablecellspacing' cellpadding='$tablecellpadding'>
<tr>
<td width='100%' valign='top' class='tagboxtop'>";
if($row[http] !=="Hjemmeside"){
echo"
<a href='
http://$row[http]' target='_blank'><b>$row[navn]</b></a>";
if($row[email] !=="E-mail"){echo"<span class='m'> - </span><a href='mailto:$row[email]'>e-mail</a>";}
}
if($row[http] =="Hjemmeside"){
echo"
<span class='m'><b>$row[navn]</b></span> ";if($row[email] !=="E-mail"){echo"<span class='m'> - </span><a href='mailto:$row[email]'>e-mail</a>";}
}
echo"
</td>
</tr>
<tr>
<td width='100%' valign='top' class='tagboxbund'><span class='m'>$row[tekst]</span></td>
</tr>
</table>";
}
Den skal du så rette til :
echo"<div style=" overflow:auto; height:500px;" class='scroll' >
";
$query = mysql_query("SELECT * FROM tagwall ORDER BY id DESC LIMIT $_GET[vis], $pagelimit") or die(mysql_error());
while($row = mysql_fetch_array($query)) {
echo"
<table border='$tableborder' width='$tablewidth' cellspacing='$tablecellspacing' cellpadding='$tablecellpadding'>
<tr>
<td width='100%' valign='top' class='tagboxtop'>";
if($row[http] !=="Hjemmeside"){
echo"
<a href='
http://$row[http]' target='_blank'><b>$row[navn]</b></a>";
if($row[email] !=="E-mail"){echo"<span class='m'> - </span><a href='mailto:$row[email]'>e-mail</a>";}
}
if($row[http] =="Hjemmeside"){
echo"
<span class='m'><b>$row[navn]</b></span> ";if($row[email] !=="E-mail"){echo"<span class='m'> - </span><a href='mailto:$row[email]'>e-mail</a>";}
}
echo"
</td>
</tr>
<tr>
<td width='100%' valign='top' class='tagboxbund'><span class='m'>$row[tekst]</span></td>
</tr>
</table>";
}
echo"</div>";