hi there ppl i have created a staffroom on my site and i am trying to add the shoutbox that s a 3 teir shoutbox now i just added 2 in the coding and every time i try to add a message and click add shout i get a 4o4 page error
that is the part i am using for the shoutboxPHP Code:$main.="<p align=\"center\">";
if(points(getuid_sid($sid))>14){$main.="<form action=\"./shoutbox2/shout2.php?sid=$sid\" method=\"post\">\n";}
$main.="<img src=\"./phpThumb/phpThumb.php?src=../images/$banner\" alt=\"-------\"/><br/>
<TABLE border=2 align='center'>
<TD>
<b><img src=\"./phpThumb/phpThumb.php?src=../images/box.gif\" alt=\"-------\"/></b><br/>\n";
if($who =="")
{
$sql = "SELECT id, shout2, uid, shtime2 FROM shouts2 ORDER BY shtime2 DESC LIMIT 2";
}else{
$sql = "SELECT id, shout2, uid, shtime2 FROM shouts2 WHERE shouter='".$who."'ORDER BY shtime2 DESC LIMIT 2";
}
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$shnick = getnick_uid($item[2]);
$sht = getbbcode($item[1], $sid, 1);
$shdt = date("d m y-H:i", $item[3]);
$lnk = "<a href=\"./profile.php?who=$item[2]&sid=$sid\">$shnick Says</a>: $sht<br/>$shdt";
if(delshout(getuid_sid($sid),$lshout[2])){
$main.=" <a href=\"./shoutbox2/delete2.php?delete=$item[0]&sid=$sid\">
<img src=\"./images/error.gif\" alt=\"[x]\"/></a>\n";
}else{
$dlsh = "";
}
$main.="$lnk $dlsh<br/>";
}
}
$main.="<br/><a href=\"./shoutbox2/history2.php?sid=$sid\">History</a>\n";
if(points(getuid_sid($sid))<15){
$points="points";
if(points(getuid_sid($sid))==14){$points="point";}
$main.="<br/>You need ".(15-points(getuid_sid($sid)))." more $points to shout!<br/>
<img src=\"./phpThumb/phpThumb.php?src=../images/$banner\" alt=\"-------\"/>
</div>\n";
}else{
$main.="<br/>StaffRoom ShoutBox Message:<br/>
<input name=\"shtxt2\" maxlength=\"100\"/><br/>
<input type=\"submit2\" value=\"Add Shout\"/><br/>
</TABLE>
</form>
</div>\n";
}
and the database is shoutbox.rar and the files i am using are called shoutbox2.rar
i am in need of this fixed asap any any of you good coders can help me please and thanks to any one that does help me out



LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks