include("config.php"); //db connection and directory variables
include("lang.php");
$maxnumber = 12;
$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);
$sendprint = $printcards."&maxnumber=".$maxnumber;
?>
"> | |||
"> | |||
" target="_blank">" src="" width="" height="" >
|
$selfcard = $thecards[0][0]; echo"$selfcard";?>
$selfmeaning = $thecards[0][1]; echo"$selfmeaning";?> |
||
" valign="top"> | |||
" target="_blank">" src="" width="" height="">
|
$moodcard = $thecards[1][0]; echo"$moodcard";?>
$moodmeaning = $thecards[1][1]; echo"$moodmeaning";?> |
" valign="top"> | |
" target="_blank">" src="" width="" height="" >
|
$financecard = $thecards[2][0]; echo"$financecard";?>
$financemeaning = $thecards[2][1]; echo"$financemeaning";?> |
||
" valign="top"> | |||
" target="_blank">" src="" width="" height="" >
|
$financecard = $thecards[3][0]; echo"$financecard";?>
$financemeaning = $thecards[3][1]; echo"$financemeaning";?> |
||
" valign="top"> | |||
" target="_blank">" src="" width="" height="" >
|
$homecard = $thecards[4][0]; echo"$homecard";?>
$homemeaning = $thecards[4][1]; echo"$homemeaning";?> |
||
" target="_blank">" src="" width="" height="" >
|
$pleasurecard = $thecards[5][0]; echo"$pleasurecard";?>
$pleasuremeaning = $thecards[5][1]; echo"$pleasuremeaning";?> |
||
" target="_blank">" src="" width="" height="" >
|
$healthcard = $thecards[6][0]; echo"$healthcard";?>
$healthmeaning = $thecards[6][1]; echo"$healthmeaning";?> |
||
" target="_blank">" src="" width="" height="" >
|
$libracard = $thecards[7][0]; echo"$libracard";?>
$librameaning = $thecards[7][1]; echo"$librameaning";?> |
||
" target="_blank">" src="" width="" height="" >
|
$deathcard = $thecards[8][0]; echo"$deathcard";?>
$deathmeaning = $thecards[8][1]; echo"$deathmeaning";?> |
||
" target="_blank">" src="" width="" height="" >
|
$spiritcard = $thecards[9][0]; echo"$spiritcard";?>
$spiritmeaning = $thecards[9][1]; echo"$spiritmeaning";?> |
||
" target="_blank">" src="" width="" height="" >
|
$jobcard = $thecards[10][0]; echo"$jobcard";?>
$jobmeaning = $thecards[10][1]; echo"$jobmeaning";?> |
||
" target="_blank">" src="" width="" height="" >
|
$friendcard = $thecards[11][0]; echo"$friendcard";?>
$friendmeaning = $thecards[11][1]; echo"$friendmeaning";?> |
||
" target="_blank">" src="" width="" height="" >
|
$fearcard = $thecards[12][0]; echo"$fearcard";?>
$fearmeaning = $thecards[12][1]; echo"$fearmeaning";?> |
||
|