include("config.php"); //db connection and directory variables
include("lang.php");
$maxnumber = 8;
$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($count != 0)
{
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);
?>
"> | |
"> | |
" target="_blank">" src="" width="" height="" >
|
$selfcard = $thecards[0][0]; echo"$selfcard";?>
$selfmeaning = $thecards[0][1]; echo"$selfmeaning";?> |
" colspan="2" valign="top"> | |
" target="_blank">" src="" width="" height="" >
|
$thoughtcard = $thecards[1][0]; echo"$thoughtcard";?>
$thoughtmeaning = $thecards[1][1]; echo"$thoughtmeaning";?> |
" colspan="2" valign="top"> | |
" target="_blank">" src="" width="" height="" >
|
$emotecard = $thecards[2][0]; echo"$emotecard";?>
$emotemeaning = $thecards[2][1]; echo"$emotemeaning";?> |
" colspan="2" valign="top"> | |
" target="_blank">" src="" width="" height="" >
|
$spiritcard = $thecards[3][0]; echo"$spiritcard";?>
$spiritmeaning = $thecards[3][1]; echo"$spiritmeaning";?> |
" colspan="2"> | |
" target="_blank">" src="" width="" height="" >
|
$physicalcard = $thecards[4][0]; echo"$physicalcard";?>
$physicalmeaning = $thecards[4][1]; echo"$physicalmeaning";?> |
" colspan="2"> | |
" target="_blank">" src="" width="" height="" >
|
$opposecard = $thecards[5][0]; echo"$opposecard";?>
$opposemeaning = $thecards[5][1]; echo"$opposemeaning";?> |
" colspan="2"> | |
" target="_blank">" src="" width="" height="" >
|
$othercard = $thecards[6][0]; echo"$othercard";?>
$othermeaning = $thecards[6][1]; echo"$othermeaning";?> |
" colspan="2"> | |
" target="_blank">" src="" width="" height="" >
|
$energycard = $thecards[7][0]; echo"$energycard";?>
$energymeaning = $thecards[7][1]; echo"$energymeaning";?> |
" colspan="2"> | |
" target="_blank">" src="" width="" height="" >
|
$outcomecard = $thecards[8][0]; echo"$outcomecard";?>
$outcomemeaning = $thecards[8][1]; echo"$outcomemeaning";?> |
Get
Another Reading Disclaimer " target="_blank" > |