MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 2nd, 2000, 09:01 AM
Sidane Sidane is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 28 Sidane User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 47 m 40 sec
Reputation Power: 0
I'm new to Mysql/Databases and am trying to figure out the best way to integrate a large number of images into a database, but need some help.

Basically what I have is an article/page with text and a number of thumbnail images to go with it. But the actual number of thumbnails in each article will vary quite considerably, from 0 - 30 conceivably.

I'm not uploading the images to the database, just the image name.

What is the best way to set this up in MySql. A separate table with a new row for each image?

Thanks in advance.

Reply With Quote
  #2  
Old June 2nd, 2000, 11:08 AM
mcsimon mcsimon is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 179 mcsimon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 37 m 38 sec
Reputation Power: 14
Send a message via AIM to mcsimon Send a message via Yahoo to mcsimon
I just set up a photo archive db that stores the following info in a table:

1. file name
2. title (or description)
3. key words (for searching purposes)
4. source (photographer's name)
5. date

--The file name is unique.
--I do searches on all info.

I hope that provides some food for thought.

Reply With Quote
  #3  
Old June 7th, 2000, 02:41 PM
Adrian2 Adrian2 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: London, England
Posts: 251 Adrian2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
If you only want each filename/thumbnail to be linked to one story, then the solution is to do as you say. Create a table with one filename on each row and include a field that points to the ID of the story. You can then select all the filenames pointing to the particular story you're interested in, whether there be zero or 1000 of them.

If a filename can be linked to more than one story then that's a different matter! I can't think of an elegant solution for this. If you work it out let me know as it's similar to a problem I'm trying to solve.

Reply With Quote
  #4  
Old June 8th, 2000, 03:30 AM
Sidane Sidane is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 28 Sidane User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 47 m 40 sec
Reputation Power: 0
Thanks for the advice, each image is linked to only one story so it looks like your solution will work Adrian2.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Multiple Images & MySql

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap