My dates stored in my database look like 2006-09-02 etc, but I want to change the date format when it gets loaded into a dropdown, ideally to look like 2-SEP-06.
Should I convert the query table field of Orderdate within a loop before putting items in a list or is there a way to intercept the code below $row[Orderdate]? Thanks
echo "<option size =10 </option>";
if(mysql_num_rows($result))
{
while($row = mysql_fetch_assoc($result))
{
echo "<option>$row[Orderdate]</option>";
}
}
else {
echo "<option>No Data Present</option>";
}
echo '</select name>';
Should I convert the query table field of Orderdate within a loop before putting items in a list or is there a way to intercept the code below $row[Orderdate]? Thanks
echo "<option size =10 </option>";
if(mysql_num_rows($result))
{
while($row = mysql_fetch_assoc($result))
{
echo "<option>$row[Orderdate]</option>";
}
}
else {
echo "<option>No Data Present</option>";
}
echo '</select name>';