The search code on lines 31 to71 is still mySQL not MySQLi. You may want to delete it and re-apply the mySQLi search code.
You also have a mySQL recordset on lines 166-186 that would need to be updated.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.