Outputing to table
I have this code here:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  
    <"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
	<head>
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>CoCamp Website - Create Menu</title>
        <style type="text/css">
        table hovertable {
	font-family: verdana,arial,sans-serif;
	font-size:11px;
	color:#333333;
	border-width: 1px;
	border-color: #999999;
	border-collapse: collapse;
        }
        table th {
	background-color:#c3dde0;
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #a9c6c9;
        }
        table tr {
	background-color:#d4e3e5;
        }
        table td {
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #a9c6c9;
        }
    </style>
    </head>
    <body>  
	
    <?php
	$dbhost = "localhost"; // this will ususally be 'localhost', but can sometimes differ
	$dbname = "cocampdb"; // the name of the database that you are going to use for this project
	$dbuser = "root"; // the username that you created, or were given, to access your database
	$dbpass = ""; // the password that you created, or were given, to access your database
	
	mysql_connect($dbhost, $dbuser, $dbpass) or die("MySQL Error: " . mysql_error());
	mysql_select_db($dbname) or die("MySQL Error: " . mysql_error());
	
	$selectweek = '1';
	
    function ouptutMeal($selectweek, $mealtime, $mealname) {
    $sqlmeasurement2 = mysql_query("SELECT title, dayid
									FROM recipe
									JOIN menu ON recipe.recipeid = menu.recipeid
									WHERE menu.weekid = '$selectweek'
									AND menu.mealtimeid = '$mealtime'
									ORDER BY dayid");

    echo "<table>
              <td> </td>
              <td>Monday</td>
			  <td>Tuesday</td>
			  <td>Wednesday</td>
			  <td>Thursday</td>
			  <td>Friday</td>
			  <td>Saturday</td>
			  <td>Sunday</td>
           <tr>
             <td><strong>$mealname</strong><br/></td>";
    while($info2 = mysql_fetch_array( $sqlmeasurement2 )) {
		if($info2['dayid'] == '1')
		{
        echo '<tr>
				<td>', $info2['title'], '</td></tr><br/>';
				
		}
		
		elseif($info2['dayid'] == '2')
		{
		echo '<tr>
				<td>', $info2['title'], '</td></tr><br/>';
		}
		
		elseif($info2['dayid'] == '3')
		{
		echo '<tr>
				<td>', $info2['title'], '</td></tr><br/>';
		}
		
		elseif($info2['dayid'] == '4')
		{
		echo '<tr>
				<td>', $info2['title'], '</td></tr><br/>';
		}
		
		elseif($info2['dayid'] == '5')
		{
		echo '<tr>
				<td>', $info2['title'], '</td></tr><br/>';
		}
		
		elseif($info2['dayid'] == '6')
		{
		echo '<tr>
				<td>', $info2['title'], '</td></tr><br/>';
		}
		
		else
		{
		echo '<tr>
				<td>', $info2['title'], '</td></tr><br/>';
		}
    } 
    echo    '</tr>
         </table>';
    }

    ouptutMeal($selectweek, 1, 'Breakfast');
    ouptutMeal($selectweek, 2, 'Lunch');
    ouptutMeal($selectweek, 3, 'Evening Meal');
    ouptutMeal($selectweek, 4, 'Pudding');
    ouptutMeal($selectweek, 5, 'Supper & Snacks');

    ?>

    </body>
    </html>

This prints out the table like in the image shown. However i would like to move the cells shown into correct places also shown in the picture.

![Image of table][1]

Can anyone tell me how to order the table shown in the image?


  [1]: http://i.stack.imgur.com/PGpM6.jpg
Outputing to table
===

I have this code here:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  
    <"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
	<head>
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>CoCamp Website - Create Menu</title>
        <style type="text/css">
        table hovertable {
	font-family: verdana,arial,sans-serif;
	font-size:11px;
	color:#333333;
	border-width: 1px;
	border-color: #999999;
	border-collapse: collapse;
        }
        table th {
	background-color:#c3dde0;
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #a9c6c9;
        }
        table tr {
	background-color:#d4e3e5;
        }
        table td {
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #a9c6c9;
        }
    </style>
    </head>
    <body>  
	
    <?php
	$dbhost = "localhost"; // this will ususally be 'localhost', but can sometimes differ
	$dbname = "cocampdb"; // the name of the database that you are going to use for this project
	$dbuser = "root"; // the username that you created, or were given, to access your database
	$dbpass = ""; // the password that you created, or were given, to access your database
	
	mysql_connect($dbhost, $dbuser, $dbpass) or die("MySQL Error: " . mysql_error());
	mysql_select_db($dbname) or die("MySQL Error: " . mysql_error());
	
	$selectweek = '1';
	
    function ouptutMeal($selectweek, $mealtime, $mealname) {
    $sqlmeasurement2 = mysql_query("SELECT title, dayid
									FROM recipe
									JOIN menu ON recipe.recipeid = menu.recipeid
									WHERE menu.weekid = '$selectweek'
									AND menu.mealtimeid = '$mealtime'
									ORDER BY dayid");

    echo "<table>
              <td> </td>
              <td>Monday</td>
			  <td>Tuesday</td>
			  <td>Wednesday</td>
			  <td>Thursday</td>
			  <td>Friday</td>
			  <td>Saturday</td>
			  <td>Sunday</td>
           <tr>
             <td><strong>$mealname</strong><br/></td>";
    while($info2 = mysql_fetch_array( $sqlmeasurement2 )) {
		if($info2['dayid'] == '1')
		{
        echo '<tr>
				<td>', $info2['title'], '</td></tr><br/>';
				
		}
		
		elseif($info2['dayid'] == '2')
		{
		echo '<tr>
				<td>', $info2['title'], '</td></tr><br/>';
		}
		
		elseif($info2['dayid'] == '3')
		{
		echo '<tr>
				<td>', $info2['title'], '</td></tr><br/>';
		}
		
		elseif($info2['dayid'] == '4')
		{
		echo '<tr>
				<td>', $info2['title'], '</td></tr><br/>';
		}
		
		elseif($info2['dayid'] == '5')
		{
		echo '<tr>
				<td>', $info2['title'], '</td></tr><br/>';
		}
		
		elseif($info2['dayid'] == '6')
		{
		echo '<tr>
				<td>', $info2['title'], '</td></tr><br/>';
		}
		
		else
		{
		echo '<tr>
				<td>', $info2['title'], '</td></tr><br/>';
		}
    } 
    echo    '</tr>
         </table>';
    }

    ouptutMeal($selectweek, 1, 'Breakfast');
    ouptutMeal($selectweek, 2, 'Lunch');
    ouptutMeal($selectweek, 3, 'Evening Meal');
    ouptutMeal($selectweek, 4, 'Pudding');
    ouptutMeal($selectweek, 5, 'Supper & Snacks');

    ?>

    </body>
    </html>

This prints out the table like in the image shown. However i would like to move the cells shown into correct places also shown in the picture.

![Image of table][1]

Can anyone tell me how to order the table shown in the image?


  [1]: http://i.stack.imgur.com/PGpM6.jpg