SitePoint Sponsor

User Tag List

Results 1 to 8 of 8

Thread: Images

  1. #1
    SitePoint Addict aniltc's Avatar
    Join Date
    Nov 2006
    Location
    INDIA
    Posts
    399
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry Images

    hi all

    i want to display images in my page from the database.I wil explain how i need?i want to display the image as thumpnail in the front page,after clicking on the thupnail it should show a big picture.

    i would appritate if anybody give me a solution to do this ?any tutorial or any class files? can i do this simple thing with out gd or with gd

    please help me out

    Thanks to all
    have a nice weekend

  2. #2
    SitePoint Enthusiast technov5's Avatar
    Join Date
    Dec 2006
    Location
    India
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you can easily do this without gd. And you'll be able to find a good tutorial on www.Kirupa.com
    I am back, with new designs.

  3. #3
    SitePoint Addict aniltc's Avatar
    Join Date
    Nov 2006
    Location
    INDIA
    Posts
    399
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry

    what i found is based on XML?

  4. #4
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    learn some basic PHP and you can do it easily. Oh wait...the requires learning.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  5. #5
    SitePoint Evangelist mrwooster's Avatar
    Join Date
    Jan 2006
    Posts
    518
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't store images in the database, this is the road to disaster. Upload the images to a directory and store the paths to the images in the database, this is the recognised method of doing it.

  6. #6
    SitePoint Enthusiast technov5's Avatar
    Join Date
    Dec 2006
    Location
    India
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would prefer mrwooster's choice to store the images in a directory as it will be much easier.
    Don't store images in the database, this is the road to disaster. Upload the images to a directory and store the paths to the images in the database, this is the recognised method of doing it.
    I am back, with new designs.

  7. #7
    SitePoint Addict Skookum's Avatar
    Join Date
    Sep 2006
    Location
    Idaho
    Posts
    375
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by technov5 View Post
    I would prefer mrwooster's choice to store the images in a directory as it will be much easier.
    I'm so glad that someone stated this, it's how I have been doing it, but I was never sure if it was the correct way of doing it.

    Thanks guys
    Paranoia is no longer a mental illness it is a way of life - Me

  8. #8
    SitePoint Evangelist mrwooster's Avatar
    Join Date
    Jan 2006
    Posts
    518
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Skookum View Post
    I'm so glad that someone stated this, it's how I have been doing it, but I was never sure if it was the correct way of doing it.

    Thanks guys
    I tried to store images as blobs in a database once and have had troble ever since, its not worth the effort.

    What I do is upload the images and assign each a random name to avoid any problems with spaces or invalid chars in the filenames, add the names to the database and display the links. Its the best way to do it.


Bookmarks

Posting Permissions

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