auto pm id select probs

Started on the old forum in January 2010 · view the original in the archive · old links redirect here

4 replies · 431 views · started 16 years ago · 1 min read

4 participants
Ponick Developer · 216 posts #1
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 😢

/* I don't know everything hehe */

Find me on facebook

anderson Developer · 146 posts #2

error string in function

Wait...

slayder Developer · 64 posts #3
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){ 

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

  echo "</p>"; 
  echo "</card>"; 
} 
eminem Junior · 14 posts #5

else if($action=="sucomment") { addonline(getuid_sid($sid)," has submitted a Photo comment",""); $comment = $_POST["comment"];

echo "<card id=\"main\" title=\"Comment\">"; 
  echo "

";

$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  

";

}else

if(($res) and ((strlen($comment))<2)){

 echo "<img src=\"images/notok.gif\" alt=\"\"/>No Comments were added

";

}

else{

 echo "<img src=\"images/notok.gif\" alt=\"x\"/>No Comments were added

";

}

echo " <a href="index.jsp?kew=selectroom&mew=$sid">«Back</a>";

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

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