use an array, place all data that normally sits in the box into an array and then use a simple if/then to check
$months=array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
$days=array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31);
//get the data from the db
//assign values to
// $mth and $date respectively
//ex $mth=5 and $date=21
//then create a loop for the array(s) and run the compare
//create the table row for the date information
echo "<tr><td><select name=\"DOB_month\">";
for ($x=1;$x<13;$x++){
if ($mth==$x){
echo "<option value=\"$x\" selected >$month";
}else{
echo "<option value=\"$x\" >$month";
}//end if
}//end for
//create the date portion
//create the table row for the date information
echo "<tr><td><select name=\"DOB_day\">";
for ($x=1;$x<32;$x++){
if ($date==$x){
echo "<option value=\"$x\" selected >$X";
}else{
echo "<option value=\"$x\" >$x";
}//end if
}//end for