Online!"; } else { $statiol = "Offline"; } //code for fav friend checking $sqlm = "SELECT * FROM `fav_friends` WHERE `me` = '$urid' AND `fav_frd` = '$user_id'"; $resultm = mysql_query($sqlm) or die('Error, query failed ' . mysql_error()); $countb = mysql_num_rows($resultm); if($countb == 0) { $bookm = 'no'; }else{ $bookm = 'yes'; } $last_login = $row['timestamp']; $pv = $row['pv']; $ag = $row['age']; $joined = $row['joined']; list($jyear, $jmonth, $jday) = explode("-", $joined); $jday = $jday; $jmonth = $jmonth; $jyear = $jyear; $jmonth_name = date( 'F', mktime(0, 0, 0, $jmonth) ); $birth_day = $row['birth_day']; list($year, $month, $day) = explode("-", $birth_day); $day = $day; $month = $month; $year = $year; $month_name = date( 'F', mktime(0, 0, 0, $month) ); $city = $row['city']; //Generating Personal information data for user $queryp = "SELECT * FROM personal_info WHERE user_id = '$user_id'"; $resultp = mysql_query($queryp) or die('Error, query failed : ' . mysql_error()); $rowp = mysql_fetch_array($resultp); $here_for = $rowp['here_for']; $zodiac = $rowp['zodiac']; $language = $rowp['languages']; $children = $rowp['child']; $caption = $rowp['caption']; $str1 = str_replace("\'", "'", $caption); $caption = str_replace('\"', '"', $str1); $education = $rowp['education']; $occupation = $rowp['occupation']; $about_me = $rowp['about_me']; $mstatus = $rowp['status']; $str1 = str_replace("\'", "'", $about_me); $about_me = str_replace('\"', '"', $str1); //Generating life style information for user $queryl = "SELECT * FROM lifestyle_info WHERE user_id = '$user_id'"; $resultl = mysql_query($queryl) or die('Error, query failed : ' . mysql_error()); $rowl = mysql_fetch_array($resultl); $home = $rowl['about_home']; $str1 = str_replace("\'", "'", $home); $home = str_replace('\"', '"', $str1); $work = $rowl['about_work_place']; $str1 = str_replace("\'", "'", $work); $work = str_replace('\"', '"', $str1); $ideal = $rowl['ideal_home']; $str1 = str_replace("\'", "'", $ideal); $ideal = str_replace('\"', '"', $str1); $pets = $rowl['pets']; $str1 = str_replace("\'", "'", $pets); $pets = str_replace('\"', '"', $str1); $philo = $rowl['philosophy']; $str1 = str_replace("\'", "'", $philo); $philo = str_replace('\"', '"', $str1); $hope = $rowl['hope']; $str1 = str_replace("\'", "'", $hope); $hope = str_replace('\"', '"', $str1); $bugs = $rowl['bugs']; $str1 = str_replace("\'", "'", $bugs); $bugs = str_replace('\"', '"', $str1); $ins = $rowl['inspirations']; $str1 = str_replace("\'", "'", $ins); $ins = str_replace('\"', '"', $str1); $scares = $rowl['scares']; $str1 = str_replace("\'", "'", $scares); $scares = str_replace('\"', '"', $str1); $traveled = $rowl['traveled']; $str1 = str_replace("\'", "'", $traveled); $traveled = str_replace('\"', '"', $str1); //Generating Professional information for user $querypr = "SELECT * FROM professional_info WHERE user_id = '$user_id'"; $resultpr = mysql_query($querypr) or die('Error, query failed : ' . mysql_error()); $rowpr = mysql_fetch_array($resultpr); $work_place = $rowpr['work_place']; $str1 = str_replace("\'", "'", $work_place); $work_place = str_replace('\"', '"', $str1); $profession = $rowpr['profession']; $str1 = str_replace("\'", "'", $profession); $profession = str_replace('\"', '"', $str1); $job_title = $rowpr['job_title']; $str1 = str_replace("\'", "'", $job_title); $job_title = str_replace('\"', '"', $str1); $qualification = $rowpr['qualification']; $str1 = str_replace("\'", "'", $qualification); $qualification = str_replace('\"', '"', $str1); $exp = $rowpr['exp']; $str1 = str_replace("\'", "'", $exp); $exp = str_replace('\"', '"', $str1); // Generating Favorites info for the user $queryp = "SELECT * FROM favorites_info WHERE user_id = '$user_id'"; $resultp = mysql_query($queryp) or die('Error, query failed : ' . mysql_error()); $rowp = mysql_fetch_array($resultp); $role = $rowp['role']; $str1 = str_replace("\'", "'", $role); $role = str_replace('\"', '"', $str1); $quot = $rowp['quot']; $str1 = str_replace("\'", "'", $quot); $quot = str_replace('\"', '"', $str1); $sports = $rowp['sports']; $str1 = str_replace("\'", "'", $sports); $sports = str_replace('\"', '"', $str1); $games = $rowp['games']; $str1 = str_replace("\'", "'", $games); $games = str_replace('\"', '"', $str1); $book = $rowp['book']; $str1 = str_replace("\'", "'", $book); $book = str_replace('\"', '"', $str1); $music = $rowp['music']; $str1 = str_replace("\'", "'", $music); $music = str_replace('\"', '"', $str1); $movie = $rowp['movie']; $str1 = str_replace("\'", "'", $movie); $movie = str_replace('\"', '"', $str1); $tv = $rowp['tv']; $str1 = str_replace("\'", "'", $tv); $tv = str_replace('\"', '"', $str1); $food = $rowp['food']; $str1 = str_replace("\'", "'", $food); $food = str_replace('\"', '"', $str1); $place = $rowp['place']; $str1 = str_replace("\'", "'", $place); $place = str_replace('\"', '"', $str1); $live = $rowp['live']; $str1 = str_replace("\'", "'", $live); $live = str_replace('\"', '"', $str1); //PMs information $sqltoii = "SELECT * FROM pms WHERE id_t = '$user_id' ORDER BY id DESC"; $resulttoii = mysql_query($sqltoii) or die('Error, query failed to : ' . mysql_error()); $cntii = mysql_num_rows($resulttoii); $sqltoi = "SELECT * FROM pms WHERE id_t = '$user_id' AND status = '0' ORDER BY id DESC"; $resulttoi = mysql_query($sqltoi) or die('Error, query failed to : ' . mysql_error()); $cnti = mysql_num_rows($resulttoi); // friends request $queryc = "SELECT * FROM friends WHERE frd2 = '$user_id' AND status = '0'"; $resultc = mysql_query($queryc) or die('Error, query failed : ' . mysql_error()); $cnt = mysql_num_rows($resultc); //This code is responsible for user photo $queryph = "SELECT * FROM pre_avatar WHERE user_id = '$user_id'"; $resultph = mysql_query($queryph) or die('Error, query failed : ' . mysql_error()); $picount = mysql_num_rows($resultph); $queryph = "SELECT * FROM pre_avatar WHERE user_id = '$user_id' AND status = '1'"; $resultph = mysql_query($queryph) or die('Error, query failed : ' . mysql_error()); $rowph = mysql_fetch_array($resultph); $phcount = mysql_num_rows($resultph); if($phcount == '0') { $iqueryph = "SELECT * FROM pre_avatar WHERE user_id = '$user_id' ORDER BY id DESC LIMIT 0,1"; $iresultph = mysql_query($iqueryph) or die('Error, query failed : ' . mysql_error()); $irowph = mysql_fetch_array($iresultph); $pimage = $irowph['path']; }else{ $pimage = $rowph['path']; } function CalculateAge($BirthDate) { // Put the year, month and day in separate variables list($Year, $Month, $Day) = explode("/", $BirthDate); $YearDiff = date("Y") - $Year; // If the birthday hasn't arrived yet this year, the person is one year younger if(date("m") < $Month || (date("m") == $Month && date("d") < $DayDiff)) { $YearDiff--; } return $YearDiff; } $st = $_REQUEST['st']; $pr = $_REQUEST['pr']; if((!$st || ($st < 0))) $st = 0; if(!$pr) $pr = 10; $next = $st+$pr; if($st <= $pr) { $back = 0; }else{ $back = $st-$pr; } // code for stat $gq = "SELECT id FROM users_site_games WHERE user_id = '$user_id'"; $gr = mysql_query($gq) or die('Error, query failed user site game'); $gc = mysql_numrows($gr); $cq = "SELECT id FROM coms WHERE id_tc = '$user_id'"; $cr = mysql_query($cq) or die('Error, query comments'); $cc = mysql_numrows($cr); $fq = "SELECT * FROM friends WHERE status = '1' AND frd2 = '$user_id' OR frd1 = '$user_id' AND status = '1'"; $fr = mysql_query($fq) or die('Error, query friends'); $fc = mysql_numrows($fr); $point = $row['pts']; $country = $row['location']; $qry_rank = "SELECT * FROM users WHERE location = '$country' AND pts > '$point'"; $result_rank = mysql_query($qry_rank) or die('Error, query failed : ' . mysql_error()); $country_rank = mysql_num_rows($result_rank); $country_rank = $country_rank+1; $qry_rank_w = "SELECT * FROM users WHERE pts > '$point'"; $result_rank_w = mysql_query($qry_rank_w) or die('Error, query failed : ' . mysql_error()); $world_rank = mysql_num_rows($result_rank_w); $world_rank = $world_rank+1; ?> <?=ucwords($user_name);?> profile at GamesBunch.com - Play Free games and make friends.
HomeCommunity
$caption
"; } ?>
Gender :
Age :
Location :
Status :
Contacting
  • Send Message
  • Add to Friend
  • Add Comment
  • Block User
  • Add to Favorite
  • Forward to Friend
Contacting
About Me
 
Status :
Here for :
Zodiac Sign :
Birthday :
Education :
Occupation :
Languages I speak :
Latest Game of Site
view all games
<?=$toprow['title'];?>
Members Stats
Friends
view all friends
Online!"; } else { $stati = "FF0000"; $alt = "Online!"; } $p_image = $row['image']; if($p_image == '0') { $img_path = "/members/noimage.jpg"; } elseif($p_image == '1') { $sqlavt = "SELECT path FROM avatar WHERE user_id = '$idp'"; $resavt = mysql_query($sqlavt) or die('Error, query failed to fint todays play count'); $rowavt = mysql_fetch_array($resavt); $img_path = $rowavt['path']; } elseif($p_image == '2') { $iqueryph = "SELECT * FROM pre_avatar WHERE user_id = '$idp' AND status = '1'"; $iresultph = mysql_query($iqueryph) or die('Error, query failed : ' . mysql_error()); $irowph = mysql_fetch_array($iresultph); $pimage = $irowph['path']; $img_path = "/members/image.php?width=80&f=".$pimage; }else { echo "ERROR "; } ?>


Comments
view all comments
[]
This section is set to private and can only be viewed by ' friends. You can send a friend request to
Send request