Showdr_i.php line 16 should be:
if (!$rsMain->getColumnVal('specialtiesID')) $rsMain->Results[0]['specialtiesID'] = 0;
The other lines should be fine on that page.
The search results page needs to be converted, both the recordset and the search, and since it uses custom code, some will have to be done manually.
I can't do that without FTP access. If you can send me FTP information for the site and a URL so I can browse the page for testing then I can update it for you.