shoutbox

Started on the old forum in February 2010 · view the original in the archive · old links redirect here

1 reply · 525 views · started 16 years ago · 1 min read

brand Senior · 391 posts #1

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

$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";
}

 

that is the part i am using for the shoutbox

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

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

brand Senior · 391 posts #2

this has now been fixed please colde this or delete it please

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close