So you do the query for the quote..
PHP Code:
$myquote = $db->query_first("SELECT quote, author FROM " . TABLE_PREFIX . "usml_quotesdb WHERE quoteid = '" . $somevar . "'");
Do a query_first and then you can use the variables directly...
PHP Code:
$newTemplate = vB_Template::create('quotetemplate);
$newTemplate->register('myquote', $myquote);
$newTemplate->render();
Now in the quotetemplate, you may use:
HTML Code:
{vb:raw myquote.quote}
{vb:raw myquote.author}
Is that what you were asking?