First off, I'm fairly new to PHP but I do know my way around.
As far as the script...it's to display events on a Performing Arts Center website. I put it up and at one point it worked with no problems then all of a sudden it stopped. Other PHP on the site does work though.
The Link To This Page Containing The PHP would be something to the effect of
www.udpac.org/site/eventinfo.php?show=bazaar
or
www.udpac.org/site/eventinfo.php?show=noisesoff
Oh and yes the page was being found. This was proven b/c the HTML on the page (not shown here) was being displayed.
No errors were being displayed either.
<?php
// -----------------------------------------------
$bazaar="bazaar";
$lso1="lso1";
$noisesoff="noisesoff";
$nutcracker="nutcracker";
$christmascarol="christmascarol";
$themessiah="themessiah";
$lso2="lso2";
$shootingstars1="shootingstars1";
$blackthorne="blackthorne";
$lso3="lso3";
$templeorch="templeorch";
$huckfinn="huckfinn";
$youthorch="youthorch";
$lso4="lso4";
$corduroy="corduroy";
$frankweiler="frankweiler";
$lso5="lso5";
$noinfo="noinfo";
// -----------------------------------------------
// -----------------------------------------------
$s="<font face=Maiandra GD size=5 color=#CEC22D>Show:</font> <br>";
$d="<font face=Maiandra GD size=5 color=#CEC22D>Dates:</font> <br>";
$t="<font face=Maiandra GD size=5 color=#CEC22D>Tickets:</font> <br>";
$a="<font face=Maiandra GD size=5 color=#CEC22D>Additional Notes:</font> <br>";
// -----------------------------------------------
// -----------------------------------------------
// INTERNATIONAL BAZAAR
if ($show == $bazaar){
print"$s 13th Annual International Bazaar <br>";
print"$d Sun, October 12, 2003 at 11am to 4:30pm<br>in the UDHS Gyms <br>";
print"$t $3, Children 5 and under free <br>";
print"$a Additional charge for food and crafts.<br>Entertainment, food and crafts from 30+ countries.<br>Children's area available.<br><a target=_blank href=http://www.udpac.org/tmilewski/Events/flyer_bazaar.jpg><font color=#000000>Download The Flyer Here (JPEG)</font></a>";
}
// LANSDOWNE SYMPHONY ORCHESTRA
elseif ($show == $lso1){
print"$s Lansdowne Symphony Orchestra <br>";
print"$d Fri, October 17, 2003 at 8pm <br>";
print"$t $15 Adults, $12 Senior Citizens, $5 Students <br>";
print"$a Wonderful classical music concerts for the entire family.";
}
// NOISES OFF
elseif ($show == $noisesoff){
print"$s Noises Off <br>";
print"$d Fri, Nov. 7, 2003 at 8pm <br>Sat, Nov. 8, 2003 at 8pm <br>Sun, Nov. 9, 2003 at 2pm <br>";
print"$t $8 <br>";
print"$a Called The Funniest Farce Ever Written";
}
// NUTCRACKER
elseif ($show == $nutcracker){
print"$s The Nutcracker <br>";
print"$d Fri, Nov. 21 at 7:30pm <br>Sat, Nov. 22 at 11am and 3pm<br>Sun, Nov. 23 at 3pm and 7pm <br>";
print"$t Orch. Reserved - $15<br>Side/Balcony Reserved - $13<br>General Admission - $9 ($1 off for children 12 and under) <br>";
print"$a Pennsylvania Academy of Ballet Society's popular performance.<br><a target=_blank href=http://www.udpac.org/site/Events/flyer_nutcracker.pdf><font color=#000000>Download The Flyer Here (PDF)</font></a>";
}
// A CHRISTMAS CAROL
elseif ($show == $christmascarol){
print"$s A Christmas Carol <br>";
print"$d Fri, December 5, 2003 at 7:30pm <br>";
print"$t Orch. Reserved - $6<br>Side/Balcony Reserved - $5.50<br>General Admission - $5 <br>";
print"$a Theatreworks USA\'s performace of a family and Christmas classic.";
}
// THE MESSIAH
elseif ($show == $themessiah){
print"$s The Messiah <br>";
print"$d Sat, December 6, 2003 at 8pm <br>";
print"$t Reserved - $16<br>General Admission - $12<br>Students - $5 <br>";
print"$a Lansdowne Symphony Orchestra and the<br>UDHS Concert Choir";
}
// LANSDOWNE SYMPHONY ORCHESTRA
elseif ($show == $lso2 ){
print"$s Lansdowne Symphony Orchestra <br>";
print"$d Sun, December 21, 2003 at 3pm <br>";
print"$t $15 Adults, $12 Senior Citizens, $5 Students <br>";
print"$a Wonderful classical music concerts for the entire family.";
}
// UDSS SHOOTING STARS CHRISTMAS SHOW
elseif ($show == $shootingstars1 ){
print"$s Upper Darby Summer Stage Shooting Stars Christmas Show <br>";
print"$d Sun, December 21, 2003 at 7pm <br>";
print"$t Orch. Reserved - $6<br>Side/Balcony Reserved - $5.50<br>General Admission - $5 <br>";
}
// BLACKTHORNE
elseif ($show == $blackthorne ){
print"$s Blackthorne <br>";
print"$d Sat, January 31, 2004 <br>";
print"$t Orch. Reserved - $15 <br>";
}
// LANSDOWNE SYMPHONY ORCHESTRA
elseif ($show == $lso3 ){
print"$s Lansdowne Symphony Orchestra <br>";
print"$d Sun, February 8, 2004 at 3pm <br>";
print"$t $15 Adults, $12 Senior Citizens, $5 Students <br>";
print"$a Wonderful classical music concerts for the entire family.";
}
// TEMPLE UNIVERSITY ORCHESTRA
elseif ($show == $templeorch ){
print"$s Temple University Orchestra <br>";
print"$d Sun, February 15, 2004 at 3pm <br>";
print"$t Free <br>";
}
// HUCKLEBERRY FINN
elseif ($show == $huckfinn ){
print"$s Huckleberry Finn <br>";
print"$d Fri, February 20, 2004 at 7:30pm <br>";
print"$t Orch. Reserved - $6<br>Side/Balcony Reserved - $5.50<br>General Admission - $5 <br>";
print"$a Theatreworks USA's performance of a Mark Twain classic.";
}
// PHILADELPHIA YOUTH ORCHESTRA
elseif ($show == $youthorch ){
print"$s Philadelphia Youth Orchestra <br>";
print"$d Sun, February 22, 2004 at 3pm <br>";
print"$t General Admission - $10 <br>";
}
// LANSDOWNE SYMPHONY ORCHESTRA
elseif ($show == $lso4 ){
print"$s Lansdowne Symphony Orchestra <br>";
print"$d Sun, February 8, 2004 at 3pm <br>";
print"$t $15 Adults, $12 Senior Citizens, $5 Students <br>";
print"$a Wonderful classical music concerts for the entire family.";
}
// CORDUROY
elseif ($show == $corduroy ){
print"$s Corduroy <br>";
print"$d Fri, April 16, 2004 at 7:30pm <br>";
print"$t Orch. Reserved - $6<br>Side/Balcony Reserved - $5.50<br>General Admission - $5 <br>";
print"$a Theatreworks USA presents a new musical based on Don Freemans's<br>ever-popular book about a lonely teddy bear and the<br>girl who adopts him.";
}
// FROM THE MIXED UP FILES OF MRS. BASIL FRANKWEILER
elseif ($show == $frankweiler ){
print"$s From the Mixed Up Files of Mrs. Basil Frankweiler <br>";
print"$d Fri, April 30, 2004 at 7:30pm <br>";
print"$t Orch. Reserved - $6<br>Side/Balcony Reserved - $5.50<br>General Admission - $5 <br>";
print"$a ArtsPower National Touring Theatre performance based on<br>the Newberry Award-Winning Classic by E.L. Konigsberg.";
}
// LANSDOWNE SYMPHONY ORCHESTRA
elseif ($show == $lso5 ){
print"$s Lansdowne Symphony Orchestra <br>";
print"$d Sun, May 2, 2004 at 3pm <br>";
print"$t $15 Adults, $12 Senior Citizens, $5 Students <br>";
print"$a Wonderful classical music concerts for the entire family.";
}
// NO INFORMATION AVAILABLE
elseif ($show == $noinfo ){
print"No Information Available At This Time.";
}
// -----------------------------------------------
?>