Jump to content

Recommended Posts

Hey guys, Im working on a hockey leagues site and i want to each day to be separated, instead i have each game separated...http://hockeywithballs.com/schedule.php you can see there is a break between each game and i want it organized by day...so having a break to divide each day not game like stated above... Here is the code...

 

<?php
		require_once("Connections/connect.php");
		$myshows = mysql_query("SELECT schedule_id, schedule_date, schedule_time, schedule_location, schedule_teamone, schedule_teamtwo FROM tbl_schedule WHERE schedule_date >= CURRENT_DATE ORDER BY schedule_id ASC ");

		while ($row=mysql_fetch_array($myshows)){
		print "
<tr bgcolor='#666666'><td width='150'>".date('l F jS', strtotime($row['schedule_date']))."</td><td width='100'>".$row['schedule_time']."</td><td width='200'>".$row['schedule_location']."</td><td width='150'>".$row['schedule_teamone']."</td><td width='111' align='center'>V.S</td><td width='150'>".$row['schedule_teamtwo']."</td></tr><tr><td><br />
</td></tr>";
		}
		$none = mysql_query("SELECT schedule_id, schedule_date, schedule_time, schedule_location, schedule_teamone, schedule_teamtwo FROM tbl_schedule WHERE schedule_date >= CURRENT_DATE ORDER BY schedule_id ASC ");
		$gone=mysql_fetch_array($none);
		if ($gone==""){
		echo "<tr><td align='center' colspan='3' rowspan='2'><span class='style3'>No Upcoming Shows</span></td></tr>";
		}
		?>

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.