Hello guys
 I have a problem with this code for the PM to blog comment. Automtic PM not coming blog owner .. can not make it ... help ..
	
instead of a blog ownaru message comes singer blog.....
							
						
					
 I have a problem with this code for the PM to blog comment. Automtic PM not coming blog owner .. can not make it ... help ..PHP Code:
	
	
else if($action=="signblogcomment")
{
    $who = $_POST["who"];
  
if(!cansignblogcomment(getuid_sid($sid), $who))
{
        echo "<card id=\"main\" title=\"$sitename\">";
      echo "<p align=\"center\">";
      echo "Error <br/><br/>";
      echo "<a href=\"index.php?action=main&sid=$sid\">HAPPY</a>";
      echo "</p>";
      echo "</card>";
      echo "</wml>";
      exit();
    }
$bid = $_GET["bid"];
  $msgtxt = $_POST["msgtxt"];
  //$qut = $_POST["qut"];
  addonline(getuid_sid($sid),"<b>Add blog coment</b>","");
  echo "<card id=\"main\" title=\"$sitename\">";
      echo "<p align=\"center\">";
      $crdate = time();
      
      $res = false;
      if(trim($msgtxt)!="")
      {
        
      $res = mysql_query("INSERT INTO ibwf_blogcomment SET blogowner='".$who."', blogsigner='".$uid."', dtime='".$crdate."', blogmsg='".$msgtxt."'");
      }
      if($res)
      {
        echo "<img src=\"../images/ok.gif\" alt=\"O\"/>Add blog coment";
$byuid = getuid_sid($sid);
  $pmtext = "Commented by your blog   [br/][br/][small] This is an automated message, and do not respond to it [/small]";
$tm = time();
$res = mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$byuid."', touid='".$uid."', timesent='".$tm."'");
      }else{
        echo "<img src=\"../images/notok.gif\" alt=\"X\"/>error ";
      }
      
      echo "<br/><br/>";
echo "<a href=\"lists.php?action=allbl&sid=$sid\">Back to blog</a><br/>";
      echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"*\"/>";
echo "HAPPY</a>";
      echo "</p>";
      echo "</card>";
} 



							
						
 I managed!! Here's the code that is ok
Comment