Import images and resize

How can I make a form to import an image to a specific table and then display it in another page?

What id someone imports a huge JPG, and it has lots of resolution, like 300dpi. But since the JPG is only gonna be used to be displayed on the screen and not printed, we only need 72dpi resolution. Is there a way to lower the resolution and resize the JPG?

By using MySql and PHP.

thanks

Leo:hr: