+ Reply to Thread
Results 1 to 2 of 2

Thread: shoutbox

  1. #1
    Senior Member brand is on a distinguished road
    Join Date
    May 2009
    Posts
    288
    Thanks
    23
    Thanked 7 Times in 6 Posts
    Rep Power
    2

    Default shoutbox

    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

    PHP 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], $sid1);
            
    $shdt date("d m y-H:i"$item[3]);
          
    $lnk "<a href=\"./profile.php?who=$item[2]&amp;sid=$sid\">$shnick Says</a>: $sht<br/>$shdt";
         if(
    delshout(getuid_sid($sid),$lshout[2])){
    $main.=" <a href=\"./shoutbox2/delete2.php?delete=$item[0]&amp;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
    Attached Files
    cheap sites for rent sites come with 24hrs help and support

    HELP THEM WHO HELPS YOU

  2. #2
    Senior Member brand is on a distinguished road
    Join Date
    May 2009
    Posts
    288
    Thanks
    23
    Thanked 7 Times in 6 Posts
    Rep Power
    2

    Default

    this has now been fixed
    please colde this or delete it please
    cheap sites for rent sites come with 24hrs help and support

    HELP THEM WHO HELPS YOU

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Vb shoutbox
    By Richie24 in forum Scripts Forum
    Replies: 16
    Last Post: 26-08-09, 12:07
  2. Wml Shoutbox Without Sql:(
    By whiteboy544 in forum Scripts Forum
    Replies: 22
    Last Post: 15-03-08, 02:40
  3. Shoutbox
    By tzoulija in forum Coding Forum
    Replies: 9
    Last Post: 10-09-07, 23:20
  4. Shoutbox Help
    By FlareX in forum Site / Script testing and error fixing
    Replies: 0
    Last Post: 19-07-07, 11:54
  5. Shoutbox...?
    By amylee in forum News, Announcements, Site Discussion
    Replies: 4
    Last Post: 23-06-07, 21:45

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO