You really should have a template just for the year/model, but the down and dirty method would be something like:
PHP Code:
while($row = mysql_fetch_array($result))
{
$yearz = $row['year'];
$makez = $row['make_model'];
$myoutput .= "Year: " .$yearz. " Make: " .$makez. "<br />";
}
$templater = vB_Template::create('bamfg_main');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
$templater->register('$myoutput', $myoutput);
print_output($templater->render());
Then put {vb:raw myoutput} into your template.