I tried your code first and then my variables and neither one worked. here is what I had before with it all together:
PHP Code:
if (($bday[2]>=21 and $bday[1]==3) or ($bday[2]<=19 and $bday[1]==4)) {
$zodiacsign="Aries";
} else if (($bday[2]>=20 and $bday[1]==4) or ($bday[2]<=20 and $bday[1]==5)) {
$zodiacsign="Taurus";
} else if (($bday[2]>=21 and $bday[1]==5) or ($bday[2]<=20 and $bday[1]==6)) {
$zodiacsign="Gemini";
} else if (($bday[2]>=21 and $bday[1]==6) or ($bday[2]<=22 and $bday[1]==7)) {
$zodiacsign="Cancer";
} else if (($bday[2]>=23 and $bday[1]==7) or ($bday[2]<=22 and $bday[1]==8)) {
$zodiacsign="Leo";
} else if (($bday[2]>=23 and $bday[1]==8) or ($bday[2]<=22 and $bday[1]==9)) {
$zodiacsign="Virgo";
} else if (($bday[2]>=23 and $bday[1]==9) or ($bday[2]<=22 and $bday[1]==10)) {
$zodiacsign="Libra";
} else if (($bday[2]>=23 and $bday[1]==10) or ($bday[2]<=21 and $bday[1]==11)) {
$zodiacsign="Scorpio";
} else if (($bday[2]>=22 and $bday[1]==11) or ($bday[2]<=21 and $bday[1]==12)) {
$zodiacsign="Sagittarius";
} else if (($bday[2]>=22 and $bday[1]==12) or ($bday[2]<=19 and $bday[1]==1)) {
$zodiacsign="Capricorn";
} else if (($bday[2]>=20 and $bday[1]==1) or ($bday[2]<=18 and $bday[1]==2)) {
$zodiacsign="Aquarius";
} else if (($bday[2]>=19 and $bday[1]==2) or ($bday[2]<=20 and $bday[1]==3)) {
$zodiacsign="Pisces";
eval("\$zodiacsign = \"".gettemplate("getinfo_zodiac")."\";");
} else {
$zodiacsign="";
}
Like I said, I know I have the syntax wrong here for evaluating the template. I feel really stupid on this.
Quote:
Originally posted by g-force2k2
umm... just a question Boofo when you tested my code did you replace my variables with yours?
g-force2k2
|