include("/home/jlamuptb/public_html/tarotica/vars/rider-config.php"); //db connection and directory variables
include("/home/jlamuptb/public_html/tarotica/vars/tarot.php"); //language variables
error_reporting( error_reporting() & ~E_NOTICE );
$card = rider;
srand((double)microtime()*1000000);
$maxnumber = 9;
$count= 0;
$index = 0;
$cardcount = 0;
$cardindex = 0;
$cards[0];
$thecards[0][0];
$rtype = "";
while($count <= $maxnumber)
{
$number = rand(0,78);
for($index; $index <= $maxnumber; $index++)
{
if($cards[$index] == $number)
{
$number = rand(0,78);
$index = -1;
}
}
// echo"start block
$number <<<< NUMBER
";
$cards[$count] = $number;
$rnum = rand(0,78);
$rtype = "";
if($count != 0 && $count != 1)
{
if(($rnum % 2) != 0)
{
if($number == 7 || $number == 9 || $number == 11 || $number == 12 || $number == 16 || $number == 22 || $number == 23)
{
$rtype = "r";
// echo"in rtype equals blank >>> $number <<< NUMBER
";
}
else
{
$rtype = "r";
// echo"in rtype equals r >>> $number <<< NUMBER
";
}
}
}
// echo"$rtype <<< rtype
";
$which = $cards[$count];
//echo"$which
";
$query = "SELECT * FROM $table WHERE (id = '$cards[$count]')";
$result = mysqli_query($con, $query);
$r = mysqli_fetch_array($result);
if(!$result)
{
$query_error = "Failed at the mysql_db_query.";
echo"$query_error";
exit();
}
else
{
$indice = 0;
// $id = $r["id"];
$thecards[$count][$indice] = $r["name"];
$test2 = $r["card"];
//echo"$test2 <-------no array value test <--->cards count --> $cards[$count]
";
$test = $thecards[$count][$indice];
//echo"$test <-------test
";
$indice++;
if($rtype == "r")
{
$thecards[$count][$indice] = $r["rdescrip"];
}
else
{
$thecards[$count][$indice] = $r["descrip"];
}
$indice++;
if($rtype == "r")
{
$cardimage = $r["rimage"];
$cardimage = $imagedirectory."/".$cardimage;
// echo"$cardimage card IMAGE
";
$thecards[$count][$indice] = $cardimage;
}
else
{
$cardimage = $r["image"];
$cardimage = $imagedirectory."/".$cardimage;
// echo"$cardimage card IMAGE
";
$thecards[$count][$indice] = $cardimage;
}
// $thecards[$count][$indice] = $r["limage"];
}
// $cards[$count] = $number;
// echo"$cards[$count]<---rune $count <---COUNT
";
$indice++;
$thecards[$count][$indice] = $r["id"];
$count++;
$index = 0;
}
$count = 0;
$index = 0;
$printcards = implode (":", $cards);
?>
|
$acard=$thecards[9][2]; $rid=$thecards[9][3];?>" src="" vspace="3" /> $outcard = $thecards[9][0]; echo"$outcard";?>
$acard=$thecards[7][2]; $rid=$thecards[7][3];?>" src="" vspace="3" /> $externcard = $thecards[7][0]; echo"$externcard";?>
|
||
$acard=$thecards[3][2]; $rid=$thecards[3][3];?>" src="" vspace="3" /> $pastcard = $thecards[3][0]; echo"$pastcard";?> |
|
$acard=$thecards[5][2]; $rid=$thecards[5][3];?>" src="" vspace="3" /> $futurecard = $thecards[5][0]; echo"$futurecard";?> |
|
|
$acard=$thecards[0][2];$rid=$thecards[0][3];?>" src="" />
$sigcard = $thecards[0][0]; echo"$sigcard";?>
$sigmeaning = $thecards[0][1]; echo"$sigmeaning";?>
$acard=$thecards[1][2]; $rid=$thecards[1][3];?>" src="" />
$crossingcard = $thecards[1][0]; echo"$crossingcard";?>
$crossingmeaning = $thecards[1][1]; echo"$crossingmeaning";?>
$acard=$thecards[2][2];$rid=$thecards[2][3];?>" src="" />
$crowncard = $thecards[2][0]; echo"$crowncard";?>
$crownmeaning = $thecards[2][1]; echo"$crownmeaning";?>
$acard=$thecards[4][2];$rid=$thecards[4][3];?>" src="" />
$foundcard = $thecards[4][0]; echo"$foundcard";?>
$foundmeaning = $thecards[4][1]; echo"$foundmeaning";?>
$acard=$thecards[3][2]; $rid=$thecards[3][3];?>" src="" />
$pastcard = $thecards[3][0]; echo"$pastcard";?>
$pastmeaning = $thecards[3][1]; echo"$pastmeaning";?>
$acard=$thecards[1][2]; $rid=$thecards[1][3];?>" src="" />
$crossingcard = $thecards[1][0]; echo"$crossingcard";?>
$crossingmeaning = $thecards[1][1]; echo"$crossingmeaning";?>
$acard=$thecards[6][2]; $rid=$thecards[6][3];?>" src="" />
$querentcard = $thecards[6][0]; echo"$querentcard";?>
$querentmeaning = $thecards[6][1]; echo"$querentmeaning";?>
$acard=$thecards[7][2]; $rid=$thecards[7][3];?>" src="" />
$externcard = $thecards[7][0]; echo"$externcard";?>
$externmeaning = $thecards[7][1]; echo"$externmeaning";?>
$acard=$thecards[8][2]; $rid=$thecards[8][3];?>" src="" />
$hopecard = $thecards[8][0]; echo"$hopecard";?>
$hopemeaning = $thecards[8][1]; echo"$hopemeaning";?>
$acard=$thecards[9][2]; $rid=$thecards[9][3];?>" src="" />
$outcard = $thecards[9][0]; echo"$outcard";?>
$outmeaning = $thecards[9][1]; echo"$outmeaning";?>
require_once('/home/jlamuptb/public_html/tarotica/themes/footer.php'); ?>