ik heb een probleem bij mensen van buitenaf die mijn forum proberen te gebruiken. Als er meer replies in een thread komen krijgen ze na ongeveer een halve seconde opeens een 404 error. Ik zelf krijg dit niet. Ik heb veel geprobeerd en het probleem lijkt te zitten in het weergeven van de data. Als ik namelijk de page stop na het verzamelen van de gegevens uit mysql dan wordt de pagina gewoon weergegeven.
dit is mijn code voor 1 bericht:
<?
while(isset($data[$x])) {
$data[$x]['text']=stripslashes($data[$x]['text']);
$datum=explode("-",$data[$x]['date']);
$maand=$month[intval($datum[1])];
$t="replies";
if($x==-1) {
$t="threads";
}
?>
<!--POST-->
<table width=95% valign=top border=1 bordercolor=#2060BB bgcolor=#80BBFF cellpadding=1 cellspacing=0>
<tr>
<!--Post Header-->
<td bgcolor=#6090DD><? if($x==($db->rows-1)) {?><a name="lastpost" href="#lastpost"></a><? } ?>
<table border=0 width=100% height=100% cellspacing=0 cellpadding=1>
<td align=left><b><? if($x==-1) { echo(htmlentities($data[$x]['title'])); } ?></b></td>
<td align=right><b><? echo(strval(intval($datum[2]))); echo(" $maand "); echo($datum[0]); ?> <? echo($data[$x]['time']); ?></b></td>
</table>
</td>
<tr>
<td valign=top width=100%>
<table width=100% cellspacing=0 border=0>
<tr>
<!--UserInfo-->
<td width=20% align=left bgcolor=#6090DD height=255>
<table border=1 style="border: 1px" bordercolor=#2060BB width=100% height=100% cellspacing=0><td>
<table cellspacing=0 cellpadding=0 width=100% height=100%>
<tr height=0%>
<td height=0% valign=top align=center><? echo($array[$x]['username']); ?><? if($array[$x]['title']) { ?><br><font style="font-size: 12px; font-style:italic"><? echo($array[$x]['title']); ?></font><br><? }?>
<table border=1 bordercolor=#2060BB cellspacing=0 cellpadding=0><td><img src="<? if($array[$x]['avatar']) { echo($array[$x]['avatar']); } else { echo("uploads/avatar/peon.jpg"); } ?>" width=75 height=75></td></table><br><br>
</td>
</tr>
<tr height=100%>
<td height=0% valign=top align=left>Posts: <? echo($array[$x]['posts']); ?></td>
</tr>
</table>
</td></table>
</td>
<!--POST-->
<td width=80%>
<table border=0 width=100% height=100% cellspacing=0 cellpadding=4>
<tr>
<td valign=top width=100% height=100%><? echo(parse($data[$x]['text'])); if($array[$x]['signature']!="") { ?></td><tr><td valign=bottom><hr color=#90DDFF><? echo(parse($array[$x]['signature'])); } ?></td>
</tr>
<tr>
<td><table border=1 style="border: 1px" bordercolor=#2060BB width=100% height=100% cellspacing=0><td><table cellspacing=0 cellpadding=0>
<td valign=top align=left bgcolor=#6090DD width=100%><? if($name==$data[$x]['poster'] || $access) { ?>[<a href=editpost.php?f=<? echo($_GET['f']); ?>&id=<? echo($data[$x]['id']); ?>&a=del&t=<? if($x==-1) { echo("threads"); } else { echo("replies"); } ?>>Delete</a>] [<a href=editpost.php?f=<? echo($_GET['f']); ?>&id=<? echo($data[$x]['id']); ?>&a=edit&t=<? if($x==-1) { echo("threads"); } else { echo("replies"); } ?>>Edit</a>] <? } if($access) { ?>[<a href=editpost.php?f=<? echo($_GET['f']); ?>&id=<? echo($data[-1]['id']); ?>&a=sticky&t=threads>Sticky</a>] [<a href=editpost.php?f=<? echo($_GET['f']); ?>&id=<? echo($data[-1]['id']); ?>&a=lock&t=threads>Lock</a>]<? } ?></td>
<td valign=top align=right bgcolor=#6090DD><nobr><?
if((intval($data[-1]['stats'])>9 && intval($data[-1]['stats'])<11) || intval($data[-1]['stats'])>109) {
?>
[Thread locked]
<?
}
else {
echo("[<a href=post.php?f=".$_GET['f']."&tid=".$data[-1]['id']."&id=".$data[$x]['id']."&t=".$t.">Quote</a>]"); ?> <? echo("[<a href=post.php?f=".$_GET['f']."&tid=".$data[-1]['id'].">Reply</a>]");
}
?></nobr></td>
</table></td></table></td>
</tr>
</table>
</td>
</table>
</td>
</table>
<br>
<!--//POST-->
<?
$x++;
}
?>
weet iemand waarom dit gebeurt?
699 views