Jump to content

Error Everytime!!! please help!


duckboy81

Recommended Posts

I keep getting an error of:

Parse error: syntax error, unexpected ';' in /hermes/bosweb/web173/b1736/sl.pgwrestl/public_html/new/pages/booster_club.php on line 154

 

is bugging the hell out of me, please lend me a hand.

 

link 153 starts with...

$booster_club_events_query = mysql_query("SELECT * FROM pg_events WHERE squad='Booster Club' && date>='$currdate' ORDER BY date DESC");

 

 

<?php

//Changeable data should be here:
$title = "Booster Club";
//Database minus: pg_
$database = "boosterclub_ranks";

head($title);
if ($_GET['view'] == 'member_info' && is_numeric($_GET['id'])) {
$id = $_GET['id'];
$memberinfo_one_results = mysql_query("SELECT * FROM pg_boosterclub_ranks WHERE id='$id'") or die(mysql_error());
	if (mysql_num_rows($memberinfo_one_results) != "1") {
		echo '<td width="1%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" height="1"> </td>
        <td width="59%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" valign="top" height="1">
        <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber14" height="36">
          <tr>

<td width="100%" colspan="3" height="17" bgcolor="#000099" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
						<p align="center" style="margin-bottom: 4"><b>
						<font face="Verdana" size="2" color="#FFFFFF">Could Not Find Member Info</font></b></td>
					  </tr>
					  <tr>
					  <td colspan="2" bgcolor="#CC0000"></td><tr>
						<td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
						<p style="margin: 5"><font face="Arial" size="2"Sorry...could not find the member info you requested, please try refreshing the member list and find the member there.</td></font>

					  </tr>';
	}else{
		while ($memberinfo_one = mysql_fetch_array($memberinfo_one_results)) {
			if ($memberinfo_one['phone1'] != '0') {
				$memberinfo_one_phone1 = $memberinfo_one['phone1'];
			}else{
				$memberinfo_one_phone1 = "Phone number not provided";
			}
			if ($memberinfo_one['phone2'] != '0') {
				$memberinfo_one_phone2 = $memberinfo_one['phone2'];
			}else{
				$memberinfo_one_phone2 = " Alternate phone number not provided";
			}
			if ($memberinfo_one['email'] != '') {
				$memberinfo_one_email = '<a href="index.php?pagename=booster_club&view=member_sendmail&id='.$memberinfo_one['id'].'">Click here to email this person via the website:</a> <br>'.$memberinfo_one['email'];
			}else{
				$memberinfo_one_email = " Email Address Not Provided";
			}
		echo '	<td width="1%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" height="1"> </td>
		<td width="59%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" valign="top" height="1">
		<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber14" height="36">
		  <tr>

	<td width="100%" colspan="3" height="17" bgcolor="#000099" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
							<p align="center" style="margin-bottom: 4"><b>
							<font face="Verdana" size="2" color="#FFFFFF">'.$memberinfo_one['name'].' Member Info</font></b></td>
						  </tr>
						  <tr>
						  <td colspan="2" bgcolor="#CC0000"><font face="Verdana" size="2" color="#FFFFFF"><b>Contact Information</b></td>						  <tr>
							<td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
							<p style="margin: 5"><font face="Arial" size="2">Email:</td><td>'.$memberinfo_one_email.'</td></font>
							<tr>
							<td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
							<p style="margin: 5"><font face="Arial" size="2">Main Phone:</td><td>'.$memberinfo_one_phone1.'</td></font>
					  </td>
					  <tr>
							<td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
							<p style="margin: 5"><font face="Arial" size="2">Alt. Phone:</td><td>'.$memberinfo_one_phone2.'</td></font>
					  </td>
					  </tr>
						  </tr>';
		}
	}
}else if ($_GET['view'] == 'member_sendmail' && is_numeric($_GET['id'])) {
$id = $_GET['id'];
	$memberinfo_mail_results = mysql_query("SELECT * FROM pg_boosterclub_ranks WHERE id='$id'") or die(mysql_error());
	if (mysql_num_rows($memberinfo_mail_results) != "1") {
		echo '<td width="1%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" height="1"> </td>
        <td width="59%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" valign="top" height="1">
        <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber14" height="36">
          <tr>

<td width="100%" colspan="3" height="17" bgcolor="#000099" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
						<p align="center" style="margin-bottom: 4"><b>
						<font face="Verdana" size="2" color="#FFFFFF">Could Not Find Member Info</font></b></td>
					  </tr>
					  <tr>
					  <td colspan="2" bgcolor="#CC0000"></td><tr>
						<td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
						<p style="margin: 5"><font face="Arial" size="2"Sorry...could not find the member info you requested, please try refreshing the member list and find the member there.</td></font>

					  </tr>';
	}else{
		while ($memberinfo_mail = mysql_fetch_array($memberinfo_mail_results)) {
		echo '	<td width="1%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" height="1"> </td>
		<td width="59%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" valign="top" height="1">
		<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber14" height="36">
		  <tr>

	<td width="100%" colspan="3" height="17" bgcolor="#000099" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
							<p align="center" style="margin-bottom: 4"><b>
							<font face="Verdana" size="2" color="#FFFFFF">Contact '.$memberinfo_one['name'].' Via Email</font></b></td>
						  </tr>
						  <tr>
						  <td bgcolor="#CC0000"><font face="Verdana" size="2" color="#FFFFFF"><form method="post" action="index.php?pagename=mailsend&return=booster_club">';

		$ipi = getenv("REMOTE_ADDR");
		$httprefi = getenv ("HTTP_REFERER");
		$httpagenti = getenv ("HTTP_USER_AGENT");

?>

		<input type="hidden" name="id" value="<?php echo $_GET['id']; ?>" />
		<input type="hidden" name="source" value="<?php echo $database; ?>" />
		<input type="hidden" name="ip" value="<?php echo $ipi ?>" />
		<input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
		<input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />

Your Name</td><td width="85%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
							<p style="margin: 5"><font face="Arial" size="2"><input name="name" type="text"></td></tr>		  <tr><td bgcolor="#CC0000"><font face="Verdana" size="2" color="#FFFFFF">Your Email</td></font><td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium"><p style="margin: 5"><font face="Arial" size="2"><input name="email" type="text"></td></tr>	  <tr><td bgcolor="#CC0000"><font face="Verdana" size="2" color="#FFFFFF">Subject</td></font><td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium"><p style="margin: 5"><font face="Arial" size="2"><input name="subject" type="text"></td></tr><tr><td bgcolor="#CC0000"><font face="Verdana" size="2" color="#FFFFFF">Message</td><td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium"><font face="Arial" size="2"><textarea name="message" rows="15" cols="40"></textarea></font></td><tr><td colspan="2" align="right"><input type="submit" value="Send Message"></form></td></tr>
<?php 

		}
	}
}else{

	//Begin Dynamic Content

	//Begin Board Memebers
	echo '<td width="1%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" height="1"> </td>
        <td width="59%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" valign="top" height="1">
        <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber14" height="36">
          <tr>
            <td width="100%" height="17" bgcolor="#000099" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
            <p align="center" style="margin-bottom: 4"><b><font face="Verdana" size="2" color="#FFFFFF">Booster Club</font></b></td></tr>
          <tr>
            <td width="100%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
            <p style="margin: 5"><font face="Arial" size="2"><table width="100%"><tr valign="top"><td width="49%"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber14" height="36"><tr><td colspan="2" align="center" bgcolor="#000099" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-bottom-style: none; border-bottom-width: medium; border-top-color:#C0C0C0; border-top-width:1"><b><font face="Arial" size="2" color="#FFFFFF">Board Members</td></tr><tr><td align="center" bgcolor="#CC0000" width="35%" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-bottom-style: none; border-bottom-width: medium; border-top-color:#C0C0C0; border-top-width:1"><b><font face="Arial" size="2" color="#FFFFFF">Position</b></td><td align="center" bgcolor="#CC0000" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-bottom-style: none; border-bottom-width: medium; border-top-color:#C0C0C0; border-top-width:1"><font face="Arial" size="2" color="#FFFFFF"><b>Name</b></td>';

	//Begin WHILE for MEMBERS
	$member_info_results = mysql_query("SELECT * FROM pg_boosterclub_ranks ORDER BY list ASC") or die(mysql_error());
	while ($member_info = mysql_fetch_array($member_info_results)) {
	echo '<tr><td align="center"><font face="Arial" size="2">'.$member_info['rank'].'</td><td align="center"><font face="Arial" size="2"><a href="index.php?pagename=booster_club&view=member_info&id='.$member_info['id'].'">'.$member_info['name'].'</a></td></tr>';
	}
	//END WHILE for MEMBERS

	//End Board Memebers

	//Begin Board Events
	echo '</table></td><td><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber14" height="36"><tr><td colspan="2" align="center" bgcolor="#000099" valign="top" style="border-left-color: #808080
border-left-width: 2; border-right-color: #808080; border-bottom-style: none; border-bottom-width: medium; border-top-color:#C0C0C0; border-top-width:1"><b><font face="Arial" size="2" color="#FFFFFF">Club Upcoming Schedule</td></tr><tr><td align="center" bgcolor="#CC0000" width="25%" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-bottom-style: none; border-bottom-width: medium; border-top-color:#C0C0C0; border-top-width:1"><b><font face="Arial" size="2" color="#FFFFFF">Date</b></td><td align="center" bgcolor="#CC0000" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-bottom-style: none; border-bottom-width: medium; border-top-color:#C0C0C0; border-top-width:1"><font face="Arial" size="2" color="#FFFFFF"><b>Event</b></td>';

	//Begin WHILE for EVENTS
	$currdate = date("Y/m/d");
	$booster_club_events_query = mysql_query("SELECT * FROM pg_events WHERE squad='Booster Club' && date>='$currdate' ORDER BY date DESC");

		while ($booster_club_events = mysql_fetch_array($booster_club_events_query)) {
			echo '<tr><td align="center"><font face="Arial" size="2">'.strftime("%m/%d/%Y", strtotime($booster_club_events['date']);
			if ($booster_club_events['date_end'] != "") {
				echo '<br>-'.strftime("%m/%d/%Y", strtotime($booster_club_events['date_end']));
			}
			echo '</td><td align="center"><font face="Arial" size="2"><a href="index.php?pagename=events&id='.$booster_club_events['id'].'">'.$booster_club_events['event_title'].'</a></td></tr>';
		}

	//END WHILE for EVENTS

echo '<tr><td colspan="2" align="right"><font face="Arial" size="1"><a href="index.php?pagename=events&eventinclude=booster_club">View All Booster Club Dates & Uploaded Agenda/Minutes</a></td></tr></table></table>';
//End Board Events

}

//End Dynamic Content
echo '</td>
          </tr>
        </table>';
footer();
?>

 

THANKS FOR ANY HELP!!!

Link to comment
https://forums.phpfreaks.com/topic/99279-error-everytime-please-help/
Share on other sites

simple try this

 

<?php

//Changeable data should be here:
$title = "Booster Club";
//Database minus: pg_
$database = "boosterclub_ranks";

head($title);
if ($_GET['view'] == 'member_info' && is_numeric($_GET['id'])) {
$id = $_GET['id'];
$memberinfo_one_results = mysql_query("SELECT * FROM pg_boosterclub_ranks WHERE id='$id'") or die(mysql_error());
	if (mysql_num_rows($memberinfo_one_results) != "1") {
		echo '<td width="1%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" height="1"> </td>
        <td width="59%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" valign="top" height="1">
        <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber14" height="36">
          <tr>

<td width="100%" colspan="3" height="17" bgcolor="#000099" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
						<p align="center" style="margin-bottom: 4"><b>
						<font face="Verdana" size="2" color="#FFFFFF">Could Not Find Member Info</font></b></td>
					  </tr>
					  <tr>
					  <td colspan="2" bgcolor="#CC0000"></td><tr>
						<td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
						<p style="margin: 5"><font face="Arial" size="2"Sorry...could not find the member info you requested, please try refreshing the member list and find the member there.</td></font>

					  </tr>';
	}else{
		while ($memberinfo_one = mysql_fetch_array($memberinfo_one_results)) {
			if ($memberinfo_one['phone1'] != '0') {
				$memberinfo_one_phone1 = $memberinfo_one['phone1'];
			}else{
				$memberinfo_one_phone1 = "Phone number not provided";
			}
			if ($memberinfo_one['phone2'] != '0') {
				$memberinfo_one_phone2 = $memberinfo_one['phone2'];
			}else{
				$memberinfo_one_phone2 = " Alternate phone number not provided";
			}
			if ($memberinfo_one['email'] != '') {
				$memberinfo_one_email = '<a href="index.php?pagename=booster_club&view=member_sendmail&id='.$memberinfo_one['id'].'">Click here to email this person via the website:</a> <br>'.$memberinfo_one['email'];
			}else{
				$memberinfo_one_email = " Email Address Not Provided";
			}
		echo '	<td width="1%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" height="1"> </td>
		<td width="59%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" valign="top" height="1">
		<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber14" height="36">
		  <tr>

	<td width="100%" colspan="3" height="17" bgcolor="#000099" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
							<p align="center" style="margin-bottom: 4"><b>
							<font face="Verdana" size="2" color="#FFFFFF">'.$memberinfo_one['name'].' Member Info</font></b></td>
						  </tr>
						  <tr>
						  <td colspan="2" bgcolor="#CC0000"><font face="Verdana" size="2" color="#FFFFFF"><b>Contact Information</b></td>						  <tr>
							<td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
							<p style="margin: 5"><font face="Arial" size="2">Email:</td><td>'.$memberinfo_one_email.'</td></font>
							<tr>
							<td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
							<p style="margin: 5"><font face="Arial" size="2">Main Phone:</td><td>'.$memberinfo_one_phone1.'</td></font>
					  </td>
					  <tr>
							<td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
							<p style="margin: 5"><font face="Arial" size="2">Alt. Phone:</td><td>'.$memberinfo_one_phone2.'</td></font>
					  </td>
					  </tr>
						  </tr>';
		}
	}
}else if ($_GET['view'] == 'member_sendmail' && is_numeric($_GET['id'])) {
$id = $_GET['id'];
	$memberinfo_mail_results = mysql_query("SELECT * FROM pg_boosterclub_ranks WHERE id='$id'") or die(mysql_error());
	if (mysql_num_rows($memberinfo_mail_results) != "1") {
		echo '<td width="1%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" height="1"> </td>
        <td width="59%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" valign="top" height="1">
        <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber14" height="36">
          <tr>

<td width="100%" colspan="3" height="17" bgcolor="#000099" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
						<p align="center" style="margin-bottom: 4"><b>
						<font face="Verdana" size="2" color="#FFFFFF">Could Not Find Member Info</font></b></td>
					  </tr>
					  <tr>
					  <td colspan="2" bgcolor="#CC0000"></td><tr>
						<td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
						<p style="margin: 5"><font face="Arial" size="2"Sorry...could not find the member info you requested, please try refreshing the member list and find the member there.</td></font>

					  </tr>';
	}else{
		while ($memberinfo_mail = mysql_fetch_array($memberinfo_mail_results)) {
		echo '	<td width="1%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" height="1"> </td>
		<td width="59%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" valign="top" height="1">
		<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber14" height="36">
		  <tr>

	<td width="100%" colspan="3" height="17" bgcolor="#000099" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
							<p align="center" style="margin-bottom: 4"><b>
							<font face="Verdana" size="2" color="#FFFFFF">Contact '.$memberinfo_one['name'].' Via Email</font></b></td>
						  </tr>
						  <tr>
						  <td bgcolor="#CC0000"><font face="Verdana" size="2" color="#FFFFFF"><form method="post" action="index.php?pagename=mailsend&return=booster_club">';

		$ipi = getenv("REMOTE_ADDR");
		$httprefi = getenv ("HTTP_REFERER");
		$httpagenti = getenv ("HTTP_USER_AGENT");

?>

		<input type="hidden" name="id" value="<?php echo $_GET['id']; ?>" />
		<input type="hidden" name="source" value="<?php echo $database; ?>" />
		<input type="hidden" name="ip" value="<?php echo $ipi ?>" />
		<input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
		<input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />

Your Name</td><td width="85%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
							<p style="margin: 5"><font face="Arial" size="2"><input name="name" type="text"></td></tr>		  <tr><td bgcolor="#CC0000"><font face="Verdana" size="2" color="#FFFFFF">Your Email</td></font><td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium"><p style="margin: 5"><font face="Arial" size="2"><input name="email" type="text"></td></tr>	  <tr><td bgcolor="#CC0000"><font face="Verdana" size="2" color="#FFFFFF">Subject</td></font><td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium"><p style="margin: 5"><font face="Arial" size="2"><input name="subject" type="text"></td></tr><tr><td bgcolor="#CC0000"><font face="Verdana" size="2" color="#FFFFFF">Message</td><td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium"><font face="Arial" size="2"><textarea name="message" rows="15" cols="40"></textarea></font></td><tr><td colspan="2" align="right"><input type="submit" value="Send Message"></form></td></tr>
<?php 

		}
	}
}else{

	//Begin Dynamic Content

	//Begin Board Memebers
	echo '<td width="1%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" height="1"> </td>
        <td width="59%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" valign="top" height="1">
        <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber14" height="36">
          <tr>
            <td width="100%" height="17" bgcolor="#000099" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
            <p align="center" style="margin-bottom: 4"><b><font face="Verdana" size="2" color="#FFFFFF">Booster Club</font></b></td></tr>
          <tr>
            <td width="100%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
            <p style="margin: 5"><font face="Arial" size="2"><table width="100%"><tr valign="top"><td width="49%"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber14" height="36"><tr><td colspan="2" align="center" bgcolor="#000099" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-bottom-style: none; border-bottom-width: medium; border-top-color:#C0C0C0; border-top-width:1"><b><font face="Arial" size="2" color="#FFFFFF">Board Members</td></tr><tr><td align="center" bgcolor="#CC0000" width="35%" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-bottom-style: none; border-bottom-width: medium; border-top-color:#C0C0C0; border-top-width:1"><b><font face="Arial" size="2" color="#FFFFFF">Position</b></td><td align="center" bgcolor="#CC0000" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-bottom-style: none; border-bottom-width: medium; border-top-color:#C0C0C0; border-top-width:1"><font face="Arial" size="2" color="#FFFFFF"><b>Name</b></td>';

	//Begin WHILE for MEMBERS
	$member_info_results = mysql_query("SELECT * FROM pg_boosterclub_ranks ORDER BY list ASC") or die(mysql_error());
	while ($member_info = mysql_fetch_array($member_info_results)) {
	echo '<tr><td align="center"><font face="Arial" size="2">'.$member_info['rank'].'</td><td align="center"><font face="Arial" size="2"><a href="index.php?pagename=booster_club&view=member_info&id='.$member_info['id'].'">'.$member_info['name'].'</a></td></tr>';
	}
	//END WHILE for MEMBERS

	//End Board Memebers

	//Begin Board Events
	echo '</table></td><td><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber14" height="36"><tr><td colspan="2" align="center" bgcolor="#000099" valign="top" style="border-left-color: #808080
border-left-width: 2; border-right-color: #808080; border-bottom-style: none; border-bottom-width: medium; border-top-color:#C0C0C0; border-top-width:1"><b><font face="Arial" size="2" color="#FFFFFF">Club Upcoming Schedule</td></tr><tr><td align="center" bgcolor="#CC0000" width="25%" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-bottom-style: none; border-bottom-width: medium; border-top-color:#C0C0C0; border-top-width:1"><b><font face="Arial" size="2" color="#FFFFFF">Date</b></td><td align="center" bgcolor="#CC0000" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-bottom-style: none; border-bottom-width: medium; border-top-color:#C0C0C0; border-top-width:1"><font face="Arial" size="2" color="#FFFFFF"><b>Event</b></td>';

	//Begin WHILE for EVENTS
	$currdate = date("Y/m/d");
	$booster_club_events_query = mysql_query("SELECT * FROM pg_events WHERE squad='Booster Club' && date>='$currdate' ORDER BY date DESC");

		while ($booster_club_events = mysql_fetch_array($booster_club_events_query)) {
			echo '<tr><td align="center"><font face="Arial" size="2">'.strftime("%m/%d/%Y", strtotime($booster_club_events['date']).'';
			if ($booster_club_events['date_end'] != "") {
				echo '<br>-'.strftime("%m/%d/%Y", strtotime($booster_club_events['date_end']));
			}
			echo '</td><td align="center"><font face="Arial" size="2"><a href="index.php?pagename=events&id='.$booster_club_events['id'].'">'.$booster_club_events['event_title'].'</a></td></tr>';
		}

	//END WHILE for EVENTS

echo '<tr><td colspan="2" align="right"><font face="Arial" size="1"><a href="index.php?pagename=events&eventinclude=booster_club">View All Booster Club Dates & Uploaded Agenda/Minutes</a></td></tr></table></table>';
//End Board Events

}

//End Dynamic Content
echo '</td>
          </tr>
        </table>';
footer();
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.