I am populating three select boxes to give me 3 select boxes, containing day, month, time. I am using this current code to populate each option:
<select name="<?php echo $select2; ?>">
<?php
$months = array(Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec);
foreach ($months as &$value)
{
echo '<option value="'.$value.'">'.$value.'</option>';
}
?>
</select>
I am then converting the selected results into a single variable. which is stored in a DB as a DD-MM-YY format. How can I pull this info out of the database, and make the select boxes default to what ever has been pulled out from the DB?
Thanks guys
Andy Jones