the users are havin problems in posting blogs at my site. i have not edited my script in that section and its givin errors... tried to fix the problem but cant seem to find out how to solve it. can any1 help me n i give any part of my script that u want for any1 who solve it for me. thanks External image (may be gone)
else if($action=="addblg")
{
if(!getplusses(getuid_sid($sid))>25)
{
echo "<card id=\"main\" title=\"lavalair.net\">";
echo "<p align=\"center\">";
echo "Only 25+ plusses can add blogs
";
echo "<a href=\"index.php?action=main&sid=$sid\">Home</a>";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
$msgtxt = $_POST["btitle"];
$msgtxt = $_POST["msgtxt"];
//$qut = $_POST["qut"];
addonline(getuid_sid($sid),"Adding a blog","");
echo "<card id=\"main\" title=\"Add Blog\">";
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>";
}