Current Path : /var/www/html/social/
Upload File :
Current File : /var/www/html/social/check_friendrequest.php

<?php session_start();
 include("../connection/connection.php"); 
  $frndreq      =  mysql_query("select sc.requester_id,sc.frndrequestid,sc.user_id,ub.user_fullname,ub.user_id,ub.user_fb_id,ub.user_img,ub.user_city  from social_userfrndrequest as sc left join social_userbasicinfo as ub on sc.user_id = ub.user_id      where sc.requester_id = '".$_SESSION['userid']."' and 	sc.frndrequeststatus ='1' ");
  $frndreq_3      =  mysql_query("select sc.requester_id,sc.frndrequestid,sc.user_id  from social_userfrndrequest as sc   where sc.requester_id = '".$_SESSION['userid']."'  and sc.frndrequeststatus ='1' ");
	   $numofreq    = mysql_num_rows($frndreq_3); 
  
 $output =  '<ul class="friend-rqst-wrap" >';
                while($fetchuserfrndsreqByIds = @mysql_fetch_array($frndreq,MYSQL_ASSOC)){  
 $output.= '<li><div class="friend-desc">
                  <a href='.trim($base_url.'dashboard.php'.'?f='.$fetchuserfrndsreqByIds['user_fullname'].'&m='.base64_encode($fetchuserfrndsreqByIds['user_id'].$fetchuserfrndsreqByIds['user_fullname'])).' style="display:block; text-decoration:none;">
                     <img class="frnd" src="ProfileThumb/Thumb/'.$fetchuserfrndsreqByIds['user_img'].'"   />
                     <span class="name">'.ucwords($fetchuserfrndsreqByIds['user_fullname']).'</span><span class="location">
					 '.$fetchuserfrndsreqByIds['user_city'].'
					 </span>
                  </a>
                    </div>
                    <span id="loadmoreforfriendaccept" style="display:none;"><img src="images/loader.gif" height="20" width="20"></span>
                    <span id="friendsstatusshow">
                    <a href="#" role="button" data-toggle="modal" id="frndrequestreje'.$fetchuserfrndsreqByIds['frndrequestid'].'" class="pull-right btn btn-mini btn-danger" onClick="FrndReqReject('.$fetchuserfrndsreqByIds['frndrequestid'].');" >Reject</a>
                    <a href="#" role="button" data-toggle="modal" id="frndrequestaccept'.$fetchuserfrndsreqByIds['frndrequestid'].'" class="pull-right btn btn-mini btn-success" onClick="frndReqAccept('.$fetchuserfrndsreqByIds['frndrequestid'].','.$fetchuserfrndsreqByIds['user_id'].');">Accept</a>
                    </span>
                    <div class="clear"></div>
                </li>';
				}
           $output.=  '</ul>';
 echo $numofreq.'#9o95'.$output;

,