check.php
-------------------------------------------------------------------------------------------------------------------------------
<?
$correct=0;
$total = count($total_question);
include "../connect/games_db.inc";
$sql = "select id,answer from testing order by id";
$result = mysql_db_query("$dbname",$sql);
while ($r=mysql_fetch_array($result)){
$id =$r[id];
$answer =$r[answer];