Can you send me an export of your database for the tables: gal,shop,size
I'll need that to set up a test environment to reproduce the issue... Either that or send the connection file as a private attachment and I can link to the live database as well.
I don't understand which of the two results pages I should be using to reproduce the problem. Are you updating these to MySQLi or did you want to keep them MySQL?
Please provide steps to reproduce any issues you are running into. I think there are two:
1) Search results are incorrect
2) Blank database search window
Steps should be something like:
Open this page in dreamweaver, or open this page in your browser, click this button or that, this is what I expect to see... this is what I actually see..
That is what I will need to reproduce the issue, and then I can fix it.