So i have an image that i made.
and i want to put user stats in it using mysql info (such as $username, $ostatus, etc.)
how would i go about doing this? i looked for tutorials but couldnt find any.
thanks
This is almost more of a web-design question so someone else may have a better idea. I'm a function over form person but I think you could accomplish this with layers. Most web-authoring tools have an option for creating layers which you could then overlay.
You could have one layer with your image and then overlay another with the data.
im still confused on how i would save it though
If you have the [man]GD[/man] library available to you, you can write text on the image using a function such as [man]imagefttext/man or [man]imagettftext/man.
I think you may want ImageMagick, this command line will convert images and allow placing on the fly text over any image. It is also open source, I installed it onto my desk top and did not find any adverse issues. Google search brings you to the page. I has many features and can be loaded on to desktop as well as server.
It could be done client side by putting the desired text into a HTML element which has the image in question assigned as its background. A little CSS to control the size of that element along with the placement of the text would do the trick, with the added advantage that anyone accessing the site with a non-graphic browser would still be able to see the text (or hear it in the case of text-to-speech browsers).