so I'm using Autocomplete. I'm using it to display images left to the search results. The image displayed is from the products table, and that image is a around 400x400 px. But, in the autocomplete, it wouldn't be possible to show that image. Suppose I need an image of 50x50 px, how would I make the function that re-sizes the image (just to show) and the actual image is still 400x400 px ?
Here's my products table :-
productid productname price image
autoincrement somename 100 ../productimages/someimage.extension
Now this image is available in php as $result->image. I have no idea as to how I can start. Any suggestions are welcome.