Add Blog Lavalair (error Posting Message)

Started on the old forum in August 2008 · view the original in the archive · old links redirect here

3 replies · 1,332 views · started 18 years ago · 1 min read

2 participants
Guest #1

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

Dj-marc Developer · 164 posts #2
 

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't Add Added!\">";
      echo "<p align=\"center\">";
      echo "Only 50+ plusses can add blogs

";
      echo "<a href=\"index.php?action=main&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='".$uid."', bname='".$btitle."', bgdate='".$crdate."', btext='".$msgtxt."'");
      }
      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&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
      echo "</p>";
      echo "</card>";

}

letme know if it works ok?

Guest #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

SiLeNce Developer · 138 posts #4

you must active the php register global ..

add in .htaccess file ..

php_value register_globals 1 php_value display_errors 1

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