<?php 
$SQLTODO=DB_query("select * from to_do",$db);
?>
<h1>To Do</h1>
<table width="100%" cellpadding="3" cellspacing="0" border="1">
	<tr class="row1">
		<td class="tabledata">To Do</td>
		<td class="tabledata">ToDo Description</td>
		<td class="tabledata">Status</td>
		<td class="tabledata">Date</td>
	</tr>
<?php while($TODOView=DB_fetch_array($SQLTODO)) {?>
	<tr class="row1">
		<td><?php echo $TODOView['to_do']; ?></td>
		<td><?php echo $TODOView['description']; ?></td>
		<td><?php echo $TODOView['status1']; ?></td>
		<td><?php echo ConvertSQLDate($TODOView['due_date']); ?></td>
	</tr>
<?php }?>
</table>