//Test
require ("../../controlp/inc_dbc.php");
//require ("/home/comparis/public_html/incl/inc_start.php");
?>
//$start="yes";
if($_GET["topic"]){
$top = $_GET["topic"];
$Query3 = "SELECT * from fcbgame WHERE (misc='$top')";
}else{
$Query3 = "SELECT * from fcbgame ORDER BY id";
}
$Result3 = mysql_db_query ($DBName, $Query3, $Link);
$number=mysql_num_rows($Result3);
$meRand = mt_rand(0,$number);
if($meRand>0){
$meRand--;
}
$theCount=0;
$numAnswer=0;
$correctAns="";
while ($Row3 = mysql_fetch_array ($Result3)) {
if($meRand==$theCount){//gather info
$answer="$Row3[title]";
$quest="$Row3[line1]";
$clue="$Row3[line2]";
$caty="$Row3[misc]";
$opt1="$Row3[opt1]";
$opt2="$Row3[opt2]";
$opt3="$Row3[opt3]";
$opt4="$Row3[opt4]";
$opt5="$Row3[opt5]";
$fact="$Row3[fact]";
}
$theCount++;
}
if($answer=='A'){
$numAnswer=1;
$correctAns=$opt1;
}
if($answer=='B'){
$numAnswer=2;
$correctAns=$opt2;
}
if($answer=='C'){
$numAnswer=3;
$correctAns=$opt3;
}
if($answer=='D'){
$numAnswer=4;
$correctAns=$opt4;
}
if($answer=='E'){
$numAnswer=5;
$correctAns=$opt5;
}
?>
Status
echo"
Category:
$caty
";
?>
Question:
echo "$quest ";
/* post a message giving brief directions when you first enter the game
click show lyrics to start
click get hint to get another line of lyrices
click again to get the band name
lastly click hint to give up and see song title
*/
?>
Get Hint
if($newquestion=="yes"){
echo" ";
}else
// echo" ";
?>
Hint:
print ("");
print ("Pick a Topic ");
print ("Entertainment ");
print ("History ");
print ("Geography ");
print ("Arts and Literature ");
print ("Science ");
print ("Sports ");
print ("Miscellaneous ");
print ("Movie Quote ");
print ("Christmas Trivia ");
print (" ");
?>