$scat_name : "; $mata_category_name = strtolower($scat_name); } $from_gid = $rowg['id']; $vie = $rowg['views']; $vie++; $tempview = mysql_query("UPDATE games SET views='$vie' WHERE id='$from_gid'"); $gggnn = $rowg['title']; if(isset($_SESSION['userpts'.$from_gid])) {}else{ $queryu = "SELECT * FROM users WHERE username = '$username'"; $resultu = mysql_query($queryu) or die('Error, query failed'); $rowu = mysql_fetch_array($resultu); $user_id = $rowu['id']; $pts = $rowu['pts']; $pts = $pts+2; $tquery = "UPDATE users SET pts = '$pts' WHERE username = '$username'"; $tresult = mysql_query($tquery) or die('Error, query failed'); } $_SESSION['userpts'.$from_gid] = 'pt'.$from_gid; //code to count games play per day $date = date("d/m/Y"); $q_g_td = "SELECT * FROM g_palyed_today WHERE date = '$date'"; $r_td = mysql_query($q_g_td) or die('Error, query failed to fint todays play count'); if (mysql_num_rows($r_td) != 1) { $q_td = "INSERT INTO `g_palyed_today` (`count`, `date`) VALUES ('1', '$date')"; $r_td = mysql_query($q_td) or die('Error, query failed to upload first step to count'); } else { $r_td = mysql_fetch_array($r_td); $td_cont = $r_td['count']; $tdc = $td_cont+1; $tresult = mysql_query("UPDATE g_palyed_today SET count = '$tdc' WHERE date = '$date'") or die('Error, query failed ' . mysql_error()); } //code for checking user bookmark $sqlm = "SELECT * FROM `user_bookmarked` WHERE `fav_game` = '$from_gid' AND `user_id` = '$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'; } //code for checking user site game existing $sqlme = "SELECT * FROM `users_site_games` WHERE `game_ori_id` = '$from_gid' AND `user_id` = '$user_id'"; $resultme = mysql_query($sqlme) or die('Error, query failed ' . mysql_error()); $countuse = mysql_num_rows($resultme); if($countuse == 0) { $bookub = 'no'; }else{ $bookub = 'yes'; } $cononical = 'http://www.gamesbunch.com/'.$_REQUEST[w].$col_url.'/'.$_REQUEST[p].'.html'; $gamesbunch_top_heading = $gggnn; //======================== RATINGS ============================================ $voteup_sg = $rowg['voteup']; $votedown_sg = $rowg['votedown']; $total_sg = $voteup_sg + $votedown_sg; if($voteup_sg > 0) { $percenteach = ($voteup_sg/$total_sg) * 5; $rate_sg = round($percenteach, 0); }else{ $rate_sg = "0"; } //================================================================= ?> <?=$gggnn;?> - Free Online Games at GamesBunch.com




Add to my site Exists in your site Add to Bookmark Already bookmarked
Games Info
Name
:
Category
:
$scat_name"; } ?>
Description
:
Tags
:
$tgs[$i], "; } $tgts = substr($tgts, 0, strlen($tgts)-2); echo $tgts; ?>
Instruction
:
Publisher
:
Submitted By
:
Invite Friends
Your Name:         
Your Email:   
Friend's Email:
1)

2)

3)


 
All Fans
No fans yet...
Radom Games
Post Comments
Thanks for your comments ! It will be shown after approval shortly at gamesbunch.com
You are not signed in. Sign up or sign in to comment with a username.

Your Name:


Your Email: [will not be published]


Your Comment: [500 Characters Limit]

characters left


Type security code here: