include("config.inc"); //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
$linkcolor = "blue";//set link color
$vlinkcolor = "#0000FF"; //set visited link color
$headercolor = "blue"; //use this to set the color of headers
$imageborder = "0"; // card border width. this must be set to a number larger than 0 for the images to have a border
$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
$title = "Your Astrological Spread"; // page title
$pagetitle = "Your Astrological Spread"; // header 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();
}
srand((double)microtime()*1000000);
$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,78);
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;
?>
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||