Results 1 to 3 of 3

Thread: PHP Image

  1. #1
    Join Date
    Jul 2004
    Location
    Ottawa, Canada
    Posts
    1,363
    Tokens
    106
    Habbo
    Yonder

    Latest Awards:

    Default PHP Image

    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+.

  2. #2
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    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.

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

    Thanks

  3. #3
    Join Date
    Jul 2004
    Location
    Ottawa, Canada
    Posts
    1,363
    Tokens
    106
    Habbo
    Yonder

    Latest Awards:

    Default

    Its okay figured it out along with a some help from HotelUser.

    Thanks anyways.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •