obj1->getResults('',$newsql); //print_r($followingresult); $followingrowcount = $followingresult[$i]['followingrowcount']; $relation_status = $followingresult[$i]['relation_status']; } $userphohtothumbpath= ($productlisting[$i]['userphohtothumbpath']!='')?'':''; $producttitle = $productlisting[$i]['usersalutation']." ".$productlisting[$i]['userfirstname']." ".$productlisting[$i]['userlastname']; $userdesignation = $productlisting[$i]['userdesignation']; ?>
  Name Designation Connect
0 && $relation_status == 1) { echo "already following"; //User is already following other users } else if($G_userid!='' && $followingrowcount > 0 && $relation_status == 0) { echo "Request Pending"; //Request has been pending } else if($G_userid!='' && $followingrowcount==0) {?>