I'm pulling the data from a database to use in an array:
$sqlT = "SELECT * WHERE in_date = \"$today\" AND cat1 = \"T\" Order by title";
$sql_resultT = mysql_query($sqlT,$connection);
Using the following array:
while ($row = mysql_fetch_array($sql_resultT)) {
$id = $row["id"];
$title = $row["title"];
$price = $row["price"];
$disc = $row["disc"];
$date = $row["date"];
if ($date <= 0){
$month = "reorder";
} else {
$month = $date;
}
echo "
<tr>
<td>$title</td>
<td><div align=\"center\"> $price </font></div></td>
<td><div align=\"center\"> $disc </font></div></td>
<td><div align=\"center\"> $month </font></div></td>
</tr>
";
}
}
I'd like to have "date" formated as mm/yy in stead of the default yyyy-mm-dd.
Hope this is clear enough.