num_rows; $pending_count = 0; if($friend_count > 0) { $i = 0; while($result2 = mysqli_fetch_array($res, MYSQLI_ASSOC)) { $friend_data[$i] = $result2; if($friend_data[$i]['friendPending'] == 1) $pending_count ++; if($friend_data[$i]['friendPending'] == 0) $friend_count_other++; $i++; } } if(isset($_GET['test']) && $_GET['test'] == "pending") { ?> Friends Add a Friend My Friends Pending 0) { ?> You don't have any pending friend requests. Friends Add a Friend My Friends Pending 0) { ?> The game's no fun without friends. Add yours here to see what they're up to. Level