If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > images

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-09-06, 10:18
jaens jaens is offline
Registered User
 
Join Date: May 2006
Posts: 2
Question images

How do I put 2 images in one blob field?
Reply With Quote
  #2 (permalink)  
Old 05-09-06, 10:22
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
you don't, would be my guess
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 05-09-06, 10:40
jaens jaens is offline
Registered User
 
Join Date: May 2006
Posts: 2
i want to show that a hotel is a 1 star or 5 star
Reply With Quote
  #4 (permalink)  
Old 05-09-06, 10:51
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
i would use a TINYINT field for that and store an integer from 1 to 5

then, in your scripting language (asp, php, coldfusion, what have you) i would translate that value into the number of star images, which would be retrieved from the web server's file system

storing images in mysql is generally not a good idea
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On