I have already done the private profile but in inbox i get confused what way should i do this actually.
$buddy = mysql_fetch_array(mysql_query("SELECT agreed FROM buddylist where (name='".$dblogin."' AND test='".$koma[0]."') OR (name='".$koma[0]."' AND test='".$dblogin."') order by id desc LIMIT 1"));
$inboxper=mysql_fetch_array(mysql_query("SELECT inboxper FROM chat_users WHERE login='$touser' limit 1;"));
if(($buddy[0]==0) OR ($inboxper=="1")) {
$msg= '';
}
actually confused what will be the code or the way to do this like only buddies can send message he him self can send the message ???
but other people will not able to send the message to the person if his inboxper = 1 ????
anybody can fix it ?