Ah, sorry. I was referring to adding years.
As mentioned, this code works for me. The $num line differs.
Code: |
<?php
echo "<option value=''>";
echo _VEHICLE_MANAGER_OPTION_SELECT;
echo "</option>";
$num = date('Y');
for ($i = 0; $num >= 1990 ; $i++) {
echo "<option value="";
echo $num;
echo """;
if ($num == $row->year)
{
echo " selected= "true" ";
}
echo ">";
echo $num;
echo "</option>";
$num--;
}
?>
|