$bidItem is local to the function you created. Declare it as global to use it elsewhere on the page. Modify the last lines of your function like:
global $bidItem;
$bidItem = $db->loadObject();
}
Then before you use it in your HTML add:
<?php global $bidItem; ?>