I'm working on this luggage repair program which has a home screen that tells which bags are ready for pick up. The screen pulls data from 3 tables (repair, instance and customer) in order to display each repair. This information is presented by a SELECT query then a join in order to maintain the ORDER BY date outcome. With the array data, I arrange the information in a table with different colors corresponding to the date relative to today. What I'm trying to do, is rearrange the format of the date on each output line. As it is, the output date comes out in the default format 2009-08-25, but I need it to display 08-25-2009 on each line. My code is below, any ideas?

<?php
// Set the date
$date = date("Y-m-d");
$next = mktime(0,0,0,date("m"),date("d")+2,date("Y"));
$date2 = date("Y-m-d", $next);
$next2 = mktime(0,0,0,date("m"),date("d")+6,date("Y"));
$date3 = date("Y-m-d", $next2);
$parts = 'Awaiting Parts';
// Start generating the table of results
echo '<table border="0" cellpadding="2">';
// Generate the search result headings
echo '<tr class="style28">';
echo '<td>Repair ID</td><td>First Name</td><td>Last Name</td><td>Manufacturer</td><td>Item Description</td><td>Color</td><td>Ready Date</td><td>Status</td><td>Details</td><td>Completed</td>';
echo '</tr>';
// Connect to the database
require_once('connectvars.php');
$dbc = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
// Grab the response data from the database to generate the form
$query = "SELECT * FROM repairs WHERE paid = 'No' ORDER BY ready_date ASC";
$data = mysqli_query($dbc, $query);
$responses = array();
while ($row = mysqli_fetch_array($data)) {
//Look up instance id to link to name table
$query2 = "SELECT c.first_name AS first_name, c.last_name AS last_name " .
"FROM customers AS c " .
"INNER JOIN instance AS i USING (customer_id) " .
"WHERE i.instance_id = '" . $row['instance_id'] . "'";
$data2 = mysqli_query($dbc, $query2);
if (mysqli_num_rows($data2) == 1) {
$row2 = mysqli_fetch_array($data2);
$row['first_name'] = $row2['first_name'];
$row['last_name'] = $row2['last_name'];
array_push($responses, $row);
}
}
foreach ($responses as $response) {
if (($response['ready_date'] == $date) && ($response['status'] == $parts)) {
echo '<tr class="style26">';
echo '<td valign="top" width="10%">' . $response['repair_id'] . '</td>';
echo '<td valign="top" width="10%">' . $response['first_name'] . '</td>';
echo '<td valign="top" width="10%">' . $response['last_name'] . '</td>';
echo '<td valign="top" width="10%">' . $response['manufacturer'] . '</td>';
echo '<td valign="top" width="20%">' . $response['item_description'] . '</td>';
echo '<td valign="top" width="10%">' . $response['color'] . '</td>';
echo '<td valign="top" width="10%">' . $response['ready_date'] . '</td>';
echo '<td valign="top" width="10%">' . $response['status'] . '</td>';
echo '<td valign="top" width="5%"><a href="viewrepair.php?id=' . '&repair_id=' . $response['repair_id'] . '">Details </a></td>';
echo '<td valign="top" align="center" width="5%"><input type="checkbox" value="' . $response['repair_id'] . '" name="complete[]" /></a></td>';
}
if ($response['ready_date'] == $date && ($response['status'] != $parts)) {
echo '<tr class="style11">';
echo '<td valign="top" width="10%">' . $response['repair_id'] . '</td>';
echo '<td valign="top" width="10%">' . $response['first_name'] . '</td>';
echo '<td valign="top" width="10%">' . $response['last_name'] . '</td>';
echo '<td valign="top" width="10%">' . $response['manufacturer'] . '</td>';
echo '<td valign="top" width="20%">' . $response['item_description'] . '</td>';
echo '<td valign="top" width="10%">' . $response['color'] . '</td>';
echo '<td valign="top" width="10%">' . $response['ready_date'] . '</td>';
echo '<td valign="top" width="10%">' . $response['status'] . '</td>';
echo '<td valign="top" width="5%"><a href="viewrepair.php?id=' . '&repair_id=' . $response['repair_id'] . '">Details </a></td>';
echo '<td valign="top" align="center" width="5%"><input type="checkbox" value="' . $response['repair_id'] . '" name="complete[]" /></a></td>';
}
if (($response['ready_date'] > $date) && ($response['ready_date'] <= $date2) && ($response['status'] == $parts)) {
echo '<tr class="style26">';
echo '<td valign="top" width="10%">' . $response['repair_id'] . '</td>';
echo '<td valign="top" width="10%">' . $response['first_name'] . '</td>';
echo '<td valign="top" width="10%">' . $response['last_name'] . '</td>';
echo '<td valign="top" width="10%">' . $response['manufacturer'] . '</td>';
echo '<td valign="top" width="20%">' . $response['item_description'] . '</td>';
echo '<td valign="top" width="10%">' . $response['color'] . '</td>';
echo '<td valign="top" width="10%">' . $response['ready_date'] . '</td>';
echo '<td valign="top" width="10%">' . $response['status'] . '</td>';
echo '<td valign="top" width="5%"><a href="viewrepair.php?id=' . '&repair_id=' . $response['repair_id'] . '">Details </a></td>';
echo '<td valign="top" align="center" width="5%"><input type="checkbox" value="' . $response['repair_id'] . '" name="complete[]" /></a></td>';
}
if (($response['ready_date'] > $date) && ($response['ready_date'] <= $date2) && ($response['status'] != $parts)) {
echo '<tr class="style12">';
echo '<td valign="top" width="10%">' . $response['repair_id'] . '</td>';
echo '<td valign="top" width="10%">' . $response['first_name'] . '</td>';
echo '<td valign="top" width="10%">' . $response['last_name'] . '</td>';
echo '<td valign="top" width="10%">' . $response['manufacturer'] . '</td>';
echo '<td valign="top" width="20%">' . $response['item_description'] . '</td>';
echo '<td valign="top" width="10%">' . $response['color'] . '</td>';
echo '<td valign="top" width="10%">' . $response['ready_date'] . '</td>';
echo '<td valign="top" width="10%">' . $response['status'] . '</td>';
echo '<td valign="top" width="5%"><a href="viewrepair.php?id=' . '&repair_id=' . $response['repair_id'] . '">Details </a></td>';
echo '<td valign="top" align="center" width="5%"><input type="checkbox" value="' . $response['repair_id'] . '" name="complete[]" /></a></td>';
}
if (($response['ready_date'] > $date) && ($response['ready_date'] > $date2) && ($response['ready_date'] <= $date3) && ($response['status'] == $parts)) {
echo '<tr class="style26">';
echo '<td valign="top" width="10%">' . $response['repair_id'] . '</td>';
echo '<td valign="top" width="10%">' . $response['first_name'] . '</td>';
echo '<td valign="top" width="10%">' . $response['last_name'] . '</td>';
echo '<td valign="top" width="10%">' . $response['manufacturer'] . '</td>';
echo '<td valign="top" width="20%">' . $response['item_description'] . '</td>';
echo '<td valign="top" width="10%">' . $response['color'] . '</td>';
echo '<td valign="top" width="10%">' . $response['ready_date'] . '</td>';
echo '<td valign="top" width="10%">' . $response['status'] . '</td>';
echo '<td valign="top" width="5%"><a href="viewrepair.php?id=' . '&repair_id=' . $response['repair_id'] . '">Details </a></td>';
echo '<td valign="top" align="center" width="5%"><input type="checkbox" value="' . $response['repair_id'] . '" name="complete[]" /></a></td>';
}
if (($response['ready_date'] > $date) && ($response['ready_date'] > $date2) && ($response['ready_date'] <= $date3) && ($response['status'] != $parts)) {
echo '<tr class="style13">';
echo '<td valign="top" width="10%">' . $response['repair_id'] . '</td>';
echo '<td valign="top" width="10%">' . $response['first_name'] . '</td>';
echo '<td valign="top" width="10%">' . $response['last_name'] . '</td>';
echo '<td valign="top" width="10%">' . $response['manufacturer'] . '</td>';
echo '<td valign="top" width="20%">' . $response['item_description'] . '</td>';
echo '<td valign="top" width="10%">' . $response['color'] . '</td>';
echo '<td valign="top" width="10%">' . $response['ready_date'] . '</td>';
echo '<td valign="top" width="10%">' . $response['status'] . '</td>';
echo '<td valign="top" width="5%"><a href="viewrepair.php?id=' . '&repair_id=' . $response['repair_id'] . '">Details </a></td>';
echo '<td valign="top" align="center" width="5%"><input type="checkbox" value="' . $response['repair_id'] . '" name="complete[]" /></a></td>';
}
if (($response['ready_date'] > $date3) && ($response['status'] == $parts)) {
echo '<tr class="style26">';
echo '<td valign="top" width="10%">' . $response['repair_id'] . '</td>';
echo '<td valign="top" width="10%">' . $response['first_name'] . '</td>';
echo '<td valign="top" width="10%">' . $response['last_name'] . '</td>';
echo '<td valign="top" width="10%">' . $response['manufacturer'] . '</td>';
echo '<td valign="top" width="20%">' . $response['item_description'] . '</td>';
echo '<td valign="top" width="10%">' . $response['color'] . '</td>';
echo '<td valign="top" width="10%">' . $response['ready_date'] . '</td>';
echo '<td valign="top" width="10%">' . $response['status'] . '</td>';
echo '<td valign="top" width="5%"><a href="viewrepair.php?id=' . '&repair_id=' . $response['repair_id'] . '">Details </a></td>';
echo '<td valign="top" align="center" width="5%"><input type="checkbox" value="' . $response['repair_id'] . '" name="complete[]" /></a></td>';
}
if (($response['ready_date'] > $date3) && ($response['status'] != $parts)) {
echo '<tr class="style14">';
echo '<td valign="top" width="10%">' . $response['repair_id'] . '</td>';
echo '<td valign="top" width="10%">' . $response['first_name'] . '</td>';
echo '<td valign="top" width="10%">' . $response['last_name'] . '</td>';
echo '<td valign="top" width="10%">' . $response['manufacturer'] . '</td>';
echo '<td valign="top" width="20%">' . $response['item_description'] . '</td>';
echo '<td valign="top" width="10%">' . $response['color'] . '</td>';
echo '<td valign="top" width="10%">' . $response['ready_date'] . '</td>';
echo '<td valign="top" width="10%">' . $response['status'] . '</td>';
echo '<td valign="top" width="5%"><a href="viewrepair.php?id=' . '&repair_id=' . $response['repair_id'] . '">Details </a></td>';
echo '<td valign="top" align="center" width="5%"><input type="checkbox" value="' . $response['repair_id'] . '" name="complete[]" /></a></td>';
}
}
?>