PHP Code:
	
	
else if($action=="sucomment")
{
 addonline(getuid_sid($sid)," has submitted a Photo comment","");
 $comment = $_POST["comment"];
    echo "<card id=\"main\" title=\"Comment\">";
      echo "<p align=\"left\">";
    
 $uid1 = getuid_sid($sid);
  $item = mysql_fetch_array(mysql_query("SELECT uid, id, imageurl, sex FROM ibwf_usergallery WHERE uid='".$whoimage."'"));
  $rated = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_usergallery_rating WHERE byuid='".$uid1."' and imageid ='".$whoimage."'"));
 $uid = getuid_sid($sid);
   if((strlen($comment))>1){
   $res= mysql_query("INSERT INTO ibwf_usergallery_rating SET imageid='".$whoimage."', rating='".$rate."', comments='".$comment."', byuid='".$uid."', time='".time()."', commentsyn='Y'");
   }else
   if((strlen($comment))<1){
   $res= mysql_query("INSERT INTO ibwf_usergallery_rating SET imageid='".$whoimage."', rating='".$rate."', comments='".$comment."', byuid='".$uid."', time='".time()."', commentsyn='N'");
   }
   
   
   
   
   if(($res) and ((strlen($comment))>1)){
   $msg= "test";
autopm($msg, $whoimage);
     echo "<img src=\"images/ok.gif\" alt=\"\"/>Comments added Successfully  <br/>";
     
    
   }else
   if(($res) and ((strlen($comment))<2)){
     echo "<img src=\"images/notok.gif\" alt=\"\"/>No Comments were added<br/>";
   }
   else{
     echo "<img src=\"images/notok.gif\" alt=\"x\"/>No Comments were added<br/>";
   }
echo "<br/><a href=\"index.jsp?kew=selectroom&mew=$sid\">«Back</a>";
  echo "</p>";
  echo "</card>";
} 
this is my photo comment submitting page
$msg= "test";
autopm($msg, $whoimage);
but here auto pm not working
 .
 .can any one help to select users acjct id and make it work ?? please help
 
							
						
Comment