include("config.php"); //db connection and directory variables
//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
$headercolor = "#FF0000"; //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 = "000000"; //set specific border color. will not work in old browsers
$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
$pagetitle = "Your Astrological Spread"; // page title
$readlink = "Get Another Reading"; //link back to main tarot page
$disclaimlink = "Disclaimer"; // disclaimer link
$interplink = "Interpretation Basics"; //interpretation help link
$printlink = "Version to Print"; //print friendly copy link
$titleblurb = "Scroll down for your interpretation. Click on individual cards to see a larger representation."; //blurb under page header
$selfheader = "Your Self Overall "; //card 1 in lower table
$currentheader = "Your Current Mood (The Card of Aries) "; //card 2 in lower table
$financeheader = "Matters Concerning Finance (The Card of Taurus)"; //card 3 in lower table
$travelheader = "Matters Concerning Travel and Communication (The Card of Gemini)";//card 4 in lower table
$homeheader = "Matters of the Home, Parents and Children (The Card of Cancer)";//card 5 in lower table
$pleasureheader = "Matters of Pleasure (The Card of Leo)";//card 6 in lower table
$healthheader = "Matters of Health (The Card of Virgo)"; //card 7 in lower table
$partnerheader = "Matters of Partnerships and Marriage (The Card of Libra)"; //card 8 in lower table
$deathheader = "Matters of Death and Inheritance (The Card of Scorpio)"; //card 9 in lower table
$spiritheader ="Matters of the Spiritual, Education and Dreams (The Card of Sagittarius)";//card 10 in lower table
$careerheader ="Matters of Career (The Card of Capricorn)"; //card 11 in lower table
$friendheader = "Matters of Friendship (The Card of Aquarius)"; //card 12 in lower table
$burdenheader = "Matters of Burdens, Opposition and Fears (The Card of Pisces)"; //card 13 in lower table
$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=""> | |||
" target="_blank">" src="" width="73" height="120" >
|
" size=""> $selfcard = $thecards[0][0]; echo"$selfcard";?>
" size=""> $selfmeaning = $thecards[0][1]; echo"$selfmeaning";?> |
||
" size="" color=""> | |||
" target="_blank">" src="" width="73" height="10" >
|
" size=""> $moodcard = $thecards[1][0]; echo"$moodcard";?>
" size=""> $moodmeaning = $thecards[1][1]; echo"$moodmeaning";?> |
" size="" color=""> | |
" target="_blank">" src="" width="73" height="120" >
|
" size=""> $financecard = $thecards[2][0]; echo"$financecard";?>
" size=""> $financemeaning = $thecards[2][1]; echo"$financemeaning";?> |
||
" size="" color=""> | |||
" target="_blank">" src="" width="73" height="120" >
|
" size=""> $financecard = $thecards[3][0]; echo"$financecard";?>
" size=""> $financemeaning = $thecards[3][1]; echo"$financemeaning";?> |
||
" size="" color=""> | |||
" target="_blank">" src="" width="73" height="120" >
|
" size=""> $homecard = $thecards[4][0]; echo"$homecard";?>
" size=""> $homemeaning = $thecards[4][1]; echo"$homemeaning";?> |
||
" size="" color=""> | |||
" target="_blank">" src="" width="73" height="120" >
|
" size=""> $pleasurecard = $thecards[5][0]; echo"$pleasurecard";?>
" size=""> $pleasuremeaning = $thecards[5][1]; echo"$pleasuremeaning";?> |
||
" size="" color=""> | |||
" target="_blank">" src="" width="73" height="120" >
|
" size=""> $healthcard = $thecards[6][0]; echo"$healthcard";?>
" size=""> $healthmeaning = $thecards[6][1]; echo"$healthmeaning";?> |
||
" size="" color=""> | |||
" target="_blank">" src="" width="73" height="120" >
|
" size=""> $libracard = $thecards[7][0]; echo"$libracard";?>
" size=""> $librameaning = $thecards[7][1]; echo"$librameaning";?> |
||
" size="" color=""> | |||
" target="_blank">" src="" width="73" height="120" >
|
" size=""> $deathcard = $thecards[8][0]; echo"$deathcard";?>
" size=""> $deathmeaning = $thecards[8][1]; echo"$deathmeaning";?> |
||
" size="" color=""> | |||
" target="_blank">" src="" width="73" height="120" >
|
" size=""> $spiritcard = $thecards[9][0]; echo"$spiritcard";?>
" size=""> $spiritmeaning = $thecards[9][1]; echo"$spiritmeaning";?> |
||
" size="" color=""> | |||
" target="_blank">" src="" width="73" height="120" >
|
" size=""> $jobcard = $thecards[10][0]; echo"$jobcard";?>
" size=""> $jobmeaning = $thecards[10][1]; echo"$jobmeaning";?> |
||
" size="" color=""> | |||
" target="_blank">" src="" width="73" height="120" >
|
" size=""> $friendcard = $thecards[11][0]; echo"$friendcard";?>
" size=""> $friendmeaning = $thecards[11][1]; echo"$friendmeaning";?> |
||
" size="" color=""> | |||
" target="_blank">" src="" width="73" height="120" >
|
" size=""> $fearcard = $thecards[12][0]; echo"$fearcard";?>
" size=""> $fearmeaning = $thecards[12][1]; echo"$fearmeaning";?> |
||
" size=""> |