PDA

View Full Version : PHP Image



Yonder
05-11-2008, 12:35 PM
Dynamic signature, grabbing information from the database are display on the image. The only problem im having is currently i am trying to add another image ontop of the background image.

Yes i know you can simpley insert it using a url but we wish to drag the image from the database, which once again is simple its jsut inserting the $row, but this is where the problem lies the images in our database are just stored html formating.

e.g. <img src="http://uploadpicz.com/images/example.gif border="0">

so obviously when calling $row it just displays the html above, is there any possible way of inserting this or will the database have to be changed.

Thank you in advance, rep+.

Invent
12-11-2008, 11:02 AM
Hi,

You could simply explode the <img> tag to get the src of the image or use a regular expression.

To place an image on top of another image using PHP GD you can simply use the function imagecopymerge (http://uk2.php.net/imagecopymerge).

If you need help exploding the <img> tag or need to know how to use regular expressions just let me know.

Thanks

Yonder
12-11-2008, 12:06 PM
Its okay figured it out along with a some help from HotelUser.

Thanks anyways.

Want to hide these adverts? Register an account for free!