include("config.php"); //db connection and directory variables
include("lang.php");
$maxnumber = 9;
$count= 0;
$index = 0;
$cardcount = 0;
$cardindex = 0;
$cards[0];
$thecards[0][0];
while($count <= $maxnumber)
{
$number = rand(0,78);
for($index; $index <= $maxnumber; $index++)
{
if($cards[$index] == $number)
{
$number = rand(0,78);
$index = -1;
}
}
$cards[$count] = $number;
$randnum = rand(0,100);
if(($randnum % 2) != 0)
{
$cards[$count] = $cards[$count]."r";
}
$query = "SELECT * FROM $table WHERE (card = '$cards[$count]')";
$result = @mysql_db_query($db, $query);
$r = mysql_fetch_array($result);
if(!$result)
{
$query_error = "Failed at the mysql_db_query.";
echo"$query_error";
exit();
}
else
{
$indice = 0;
$thecards[$count][$indice] = $r["title"];
$test2 = $r["card"];
//echo"$test2 <-------no array value test <--->cards count --> $cards[$count]
";
$test = $thecards[$count][$indice];
//echo"$test <-------test
";
$indice++;
$thecards[$count][$indice] = $r["description"];
$indice++;
$thecards[$count][$indice] = $r["thumb"];
$indice++;
$thecards[$count][$indice] = $r["limage"];
}
// $cards[$count] = $number;
// echo"$cards[$count]<---CARD $count <---COUNT
";
$count++;
$index = 0;
}
$count = 0;
$index = 0;
$printcards = implode (":", $cards);
?>
" colspan="2"> | |||
"> | |||
" target="_blank">" src="" width="" height="" > |
$firecard = $thecards[9][0]; echo"$firecard";?>
$firemeaning = $thecards[9][1]; echo"$firemeaning";?>
|
||
" colspan="2"> | |||
" target="_blank">" src="" width="" height="" > |
$aircard = $thecards[8][0]; echo"$aircard";?>
$airmeaning = $thecards[8][1]; echo"$airmeaning";?>
|
||
"> | |||
" target="_blank">" src="" width="" height="" > |
$watercard = $thecards[7][0]; echo"$watercard";?>
$watermeaning = $thecards[7][1]; echo"$watermeaning";?>
|
||
" colspan="2"> | |||
" target="_blank">" src="" width="" height="" > |
$earthcard = $thecards[6][0]; echo"$earthcard";?>
$earthmeaning = $thecards[6][1]; echo"$earthmeaning";?>
|
||
" colspan="2"> | |||
" target="_blank">" src="" width="" height="" > |
$creatorcard = $thecards[5][0]; echo"$creatorcard";?>
$creatormeaning = $thecards[5][1]; echo"$creatormeaning";?>
|
||
" colspan="2"> | |||
" target="_blank">" src="" width="" height="" > |
$sustainercard = $thecards[4][0]; echo"$sustainercard";?>
$sustainermeaning = $thecards[4][1]; echo"$sustainermeaning";?>
|
||
" colspan="2"> | |||
" target="_blank">" src="" width="" height="" > |
$destroyercard = $thecards[3][0]; echo"$destroyercard";?>
$destroyermeaning = $thecards[3][1]; echo"$destroyermeaning";?>
|
||
" colspan="2"> | |||
" target="_blank">" src="" width="" height="" > |
$lightcard = $thecards[2][0]; echo"$lightcard";?>
$lightmeaning = $thecards[2][1]; echo"$lightmeaning";?>
|
||
" colspan="2"> | |||
" target="_blank">" src="" width="" height="" > |
$darkcard = $thecards[1][0]; echo"$darkcard";?>
$darkmeaning = $thecards[1][1]; echo"$darkmeaning";?>
|
||
" colspan="2"> | |||
" target="_blank">" src="" width="" height="" > |
$premisecard = $thecards[0][0]; echo"$premisecard";?>
$premisemeaning = $thecards[0][1]; echo"$premisemeaning";?>
|
||
Get
Another Reading Disclaimer " target="_blank" > |