I have a MySQL database with a table called `mytable`. This table contains several fields like `name` `description` `image1` and `image2`.
My search engine pulls the name, description and `image1` from each row and displays them on the search results page.
I want to have a preview icon associated with each result, that allows me to view `image2` of the DB when I move my mouse over the icon. [url removed, login to view] has a preview on their search results, use that as a reference.
The size of the image can be anything from 10X10 to 400X1200 so the script has to open a default preview window with a maximum size of 500 pixels wide and 800 pixels high.
If possible make the window resizable specially for smaller images, but bigger ones can't exceed the above max size. The window will allow the user to click on the image which will open the link. (You don't need to worry about the link, I'll configure that later, but most likely it will be something like [url removed, login to view]<?=$id;?> where $id is the ID of that row).
I am on a short deadline and need this done ASAP. Only bid if you have experience with such coding and can deliver on a short deadline.
P.S. The code MUST be well commented.
Let me know if you have any questions.