Results 1 to 2 of 2

Thread: Link to Images using PHPMYADMIN

  1. #1
    Join Date
    Feb 2006
    Posts
    26

    Exclamation Link to Images using PHPMYADMIN

    Hi,

    I have designed and built a blog style site.
    I have my database built using PhpMy Admin but i want more than just text in my blogs i want to add images aswell.

    Anyone know how i can link my images from a folder on my server into my blog using my database.

    I have tried adding a new field "images" VARCHAR 150 then typing in the localhost address but this only appears as the text.

  2. #2
    Join Date
    Feb 2007
    Location
    Ireland
    Posts
    1,007
    The handiest way of working it from your current progress would be this:

    When you store the location of the image in the database (the image is still on the server though, output the location into an image tag in html.

    Code:
    <?php echo '<img src="' . $image_addr . '" border="0" />'; ?>
    That will make it appear on the site.

Posting Permissions

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