Add Blog Lavalair (error Posting Message)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Add Blog Lavalair (error Posting Message)

    help please, my site error database to add blogs reason = "error posting message"

    #2
    Code:
     
    
    replace the old codes in genproc.php with these codes below!!!
    
    
     //////////////////////////////Add Blog
    else if($action=="addblg")
    {
    
    if(!getplusses(getuid_sid($sid))>50)
        {
            echo "<card id=\"main\" title=\"Can&#39;t Add Added!\">";
          echo "<p align=\"center\">";
          echo "Only 50+ plusses can add blogs
    
    ";
          echo "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
          echo "</p>";
          echo "</card>";
          echo "</wml>";
          exit();
        }
    
    
    $msgtxt = $_POST["msgtxt"]; 
    $btitle = $_POST["btitle"];
    
    
      //$qut = $_POST["qut"];
      addonline(getuid_sid($sid),"Added a blog","");
      echo "<card id=\"main\" title=\"Blog Added!\">";
          echo "<p align=\"center\">";
          $crdate = time();
          //$uid = getuid_sid($sid);
          $res = false;
    
          if((trim($msgtxt)!="")&&(trim($btitle)!=""))
          {
          $res = mysql_query("INSERT INTO ibwf_blogs SET bowner=&#39;".$uid."&#39;, bname=&#39;".$btitle."&#39;, bgdate=&#39;".$crdate."&#39;, btext=&#39;".$msgtxt."&#39;");
          }
          if($res)
          {
            echo "<img src=\"images/ok.gif\" alt=\"O\"/>Message Posted Successfully";
          }else{
            echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Posting Message";
          }
    
          echo "
    
    ";
          echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
          echo "</p>";
          echo "</card>";
    
    }
    letme know if it works ok?

    WapCHAT Forum Currenltly changing over to xhtml

    My Dowloads Site

    Comment


      #3
      thanks @dj-marc hahaaaa..... I posting message Successfully

      one more help please....my site open link browser list BLANK and no information browser users

      Comment


        #4
        you must active the php register global ..

        add in .htaccess file ..


        php_value register_globals 1
        php_value display_errors 1[/b]

        Comment

        Working...
        X