SitePoint Sponsor

User Tag List

Results 1 to 8 of 8

Thread: Loading images

  1. #1
    SitePoint Zealot
    Join Date
    Feb 2006
    Posts
    143
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Loading images

    I'm very new to php (and even newer to MySQL) so don't know if this would be possible, but what I want it to be able to have a template web page that loads text and images from a database. So that when somebody clicks on books a new page is loaded with a description and picture of each book. I want it to be done like this so that new books can be added all the time without having to redesign the page.
    Thanks

  2. #2
    SitePoint Member
    Join Date
    May 2007
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its possible, however a lot of images = a lot of queries.
    Which could be quite slow.

  3. #3
    Non-Member
    Join Date
    Jun 2007
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Overflow View Post
    Its possible, however a lot of images = a lot of queries.
    Which could be quite slow.
    so how else could you do it?

  4. #4
    SitePoint Zealot
    Join Date
    Feb 2006
    Posts
    143
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How would somebody like Amazon do it then?

  5. #5
    SitePoint Member
    Join Date
    May 2007
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I thought you meant retrieve every image url from the database not just a couple.

  6. #6
    SitePoint Zealot
    Join Date
    Feb 2006
    Posts
    143
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Only the images that would be under each catagory (probably never more than 20 or 30). So, I'm very new to this and wasn't clear with my post.

  7. #7
    SitePoint Member
    Join Date
    May 2007
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It will probably be ok.
    Just read some PHP tutorials on showing rows in a database and you'll be fine.

  8. #8
    SitePoint Zealot
    Join Date
    Feb 2006
    Posts
    143
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for that. I've just ordered Build Your Own Database Driven Website
    Using PHP and MySQL by Kevin Yank so hopefully that should help.
    Cheers


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
  •