Ive have a webpage where I want to have dynamic generated images based on the contents of a MySQL database. How is this done?
(I want to make some graphs on the users data in the database)

Ive thought about makeing a Java-applet which generates the graphics, but it should also be possible to export the images(ex. to be used in a (argh!) word-document). But if you save the page in the browser, the images are lost, when they are applets, right?

Ive also heard that you can create dynamic images with php. Is this usefull for my task?

Thanks in advance!