auto pm id select probs

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

    auto pm id select probs

    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){

       
    $resmysql_query("INSERT INTO ibwf_usergallery_rating SET imageid='".$whoimage."', rating='".$rate."', comments='".$comment."', byuid='".$uid."', time='".time()."', commentsyn='Y'");

       }else

       if((
    strlen($comment))<1){

       
    $resmysql_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&amp;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
    PHP Code:
    /* I don't know everything hehe */ 
    Find me on facebook

    #2
    error string in function
    Wait...
    sigpic

    Comment


      #3
      PHP Code:
      else if($action=="sucomment"

       
      addonline(getuid_sid($sid)," has submitted a Photo comment",""); 
       
      $comment $_POST["comment"]; 
      $who $_GET["who"];
          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){ 

         
      $resmysql_query("INSERT INTO ibwf_usergallery_rating SET imageid='".$whoimage."', rating='".$rate."', comments='".$comment."', byuid='".$uid."', time='".time()."', commentsyn='Y'"); 

         }else 

         if((
      strlen($comment))<1){ 

         
      $resmysql_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 "".getnick_uid($uid)."  give you a gallcomment![br/]";
              
      mysql_query("INSERT INTO your_private_table SET text='".$msg."', byuid='1', touid='".$who."', timesent='".time()."'");
           


           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&amp;mew=$sid\">«Back</a>"

        echo 
      "</p>"
        echo 
      "</card>"

      Comment


        #4
        not working
        PHP Code:
        /* I don't know everything hehe */ 
        Find me on facebook

        Comment


          #5
          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."'"));

          $hm=$item[0];

          $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,$hm);


          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&amp;mew=$sid\">«Ba ck</a>";

          echo "</p>";
          echo "</card>";
          }

          Comment

          Working...
          X