include("config.php"); //db connection and directory variables
$pcards = $_GET["pcards"];
$maxnumber = $_GET["maxnumber"];
//customize individual pages by changing these values
$pagebackground = "#FFFFFF"; //page background color
$pagetext = "#000000"; //page text color
$imageborder = "0"; // card border width. this must be set to a number larger than 0 for the images to have a border
$imagebordercolor = "#00FF00"; //set specific border color. will not work in old browsers
$linkcolor = "#00FF00";//set link color
$vlinkcolor = "#0000FF"; //set visited link color
$headercolor = "#00FF00"; //use this to set the color of headers
$imageborder = "2"; // card border width. this must be set to a number larger than 0 for the images to have a border
//$imagebordercolor = "#FF0000"; //set specific border color. will not work in old browsers
$imagewidth = "73";
$imageheight = "120";
$linkcolor = "#000000";//set link color
$vlinkcolor = "#000000"; //set visited link color
$headercolor = "#FF0000"; //use this to set the color of headers
$font = "Verdana"; //use this to set the page's font
$fontsize = "2"; //use this to set the page's font size
//the variables below define the page's wording. use these to edit headers and header text
$tettitle = "Your Tetraktys Spread"; // page title
$tetpagetitle = "Your Tetraktys Spread"; // page header title
$readlink = "Get Another Reading";
$disclaimlink = "Disclaimer";
$interplink = "Interpretation Basics";
$printlink = "Version to Print";
$titleblurb = "Scroll down for your interpretation. Click on individual cards to see a larger representation."; //blurb under page header
$fireheader = "The Fire Card "; //card 1 in lower table ***NOTICE THE SPACE AT THE STRING'S END ***
$firetext = "represents your creative force, will, and ambition.";
$airheader = "The Air Card "; //card 2 in lower table ***NOTICE THE SPACE AT THE STRING'S END ***
$airtext = "Your current strategies and thoughts concerning your goals";
$waterheader = "The Water Card "; //card 3 in lower table ***NOTICE THE SPACE AT THE STRING'S END ***
$watertext = "explores your emotional self.";
$earthheader ="The Earth Card "; //card 4 in lower table ***NOTICE THE SPACE AT THE STRING'S END ***
$earthtext ="concerns how you dealing with everyday life.";
$creatorheader = "The Creator Card "; //card 5 in lower table ***NOTICE THE SPACE AT THE STRING'S END ***
$creatortext = "explores that which drives you in new directions.";
$sustainerheader = "The Sustainer Card "; //card 6 in lower table ***NOTICE THE SPACE AT THE STRING'S END ***
$sustainertext = "depicts that which helping you remain balanced and healthy.";
$destroyerheader = "The Destroyer Card "; //card 7 in lower table ***NOTICE THE SPACE AT THE STRING'S END ***
$destroyertext = "identifies that which must be jettisoned, so you can move forward.";
$lightheader ="The Light Card "; //card 8 in lower table ***NOTICE THE SPACE AT THE STRING'S END ***
$lighttext = "represents the cosmic force which is guiding you towards fulfillment.";
$darkheader = "The Dark Card "; //card 9 in lower table ***NOTICE THE SPACE AT THE STRING'S END ***
$darktext = "represents the cosmic reaction to your being.";
$premiseheader = "The Premise "; //card 10 in lower table ***NOTICE THE SPACE AT THE STRING'S END ***
$premisetext = "represents the factors that form the the foundation for the entire spread.";
$con= @mysql_connect("$host","$user","$pass");
if(!$con)
{
$connect_error = "Failed at mysql_connect. ";
echo"error at db connect";
exit();
}
$count=0;
$index=0;
//$maxnumber = 9;
$cards = explode (":", $pcards);
while($count <= $maxnumber)
{
//echo"$cards[$count] <-----card
"; //debug
$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]
"; //debug
$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; //debug
// echo"$cards[$count]<---CARD $count <---COUNT
";
$count++;
$index = 0;
}
$count = 0;
$index = 0;
$printcards = implode (":", $cards);
?>
" size="" color="">" size=""> | |||
" size="">" target="_blank">" src="" width="" height="" > |
" size=""> $firecard = $thecards[9][0]; echo"$firecard";?>
" size=""> $firemeaning = $thecards[9][1]; echo"$firemeaning";?>
|
||
" size="">"> | |||
" size="">" target="_blank">" src="" width="" height="" > |
" size=""> $aircard = $thecards[8][0]; echo"$airard";?>
" size=""> $airmeaning = $thecards[8][1]; echo"$airmeaning";?>
|
||
" face="" size="">" face=""> | |||
" size="">" target="_blank">" src="" width="" height="" > |
" size=""> $watercard = $thecards[7][0]; echo"$watercard";?>
" size=""> $watermeaning = $thecards[7][1]; echo"$watermeaning";?>
|
||
" face="" size="">" face=""> | |||
" size="">" target="_blank">" src="" width="" height="" > |
" size=""> $earthcard = $thecards[6][0]; echo"$earthcard";?>
" size=""> $earthmeaning = $thecards[6][1]; echo"$earthmeaning";?>
|
||
" size="">">" face=""> | |||
" size="">" target="_blank">" src="" width="" height="" > |
" size=""> $creatorcard = $thecards[5][0]; echo"$creatorcard";?>
" size=""> $creatormeaning = $thecards[5][1]; echo"$creatormeaning";?>
|
||
" size="">">" face=""> | |||
" size="">" target="_blank">" src="" width="" height="" > |
" size=""> $sustainercard = $thecards[4][0]; echo"$sustainercard";?>
" size=""> $sustainermeaning = $thecards[4][1]; echo"$sustainermeaning";?>
|
||
" size="">">" face=""> | |||
" size="">" target="_blank">" src="" width="" height="" > |
" size=""> $destroyercard = $thecards[3][0]; echo"$destroyercard";?>
" size=""> $destroyermeaning = $thecards[3][1]; echo"$destroyermeaning";?>
|
||
" size="">">" face=""> | |||
" size="">" target="_blank">" src="" width="" height="" > |
" size=""> $lightcard = $thecards[2][0]; echo"$lightcard";?>
" size=""> $lightmeaning = $thecards[2][1]; echo"$lightmeaning";?>
|
||
" size="">">" face=""> | |||
" size="">" target="_blank">" src="" width="" height="" > |
" size=""> $darkcard = $thecards[1][0]; echo"$darkcard";?>
" size=""> $darkmeaning = $thecards[1][1]; echo"$darkmeaning";?>
|
||
" face="">">" face=""> | |||
" size="">" target="_blank">" src="" width="" height="" > |
" size=""> $premisecard = $thecards[0][0]; echo"$premisecard";?>
" size=""> $premisemeaning = $thecards[0][1]; echo"$premisemeaning";?>
|
||
" size=""> |