User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 427,777 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,762 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser: Programming Forums
Views: 1513 | Replies: 3
Reply
Join Date: Jun 2007
Posts: 181
Reputation: macneato is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 13
macneato's Avatar
macneato macneato is offline Offline
Junior Poster

Help Mysql image display

  #1  
Jul 19th, 2007
hi, dont usually ask for help since i believe in google. But im in a serious fix.

intro:
currently working on a table that has three fields, 'id' 'current' 'previous'.

problem:
i want to insert another field (or two - no too sure how to go about it) but with images (up_arrow and down_arrow). Now. When i create my query i would like it to automatically select a image depending on wether 'current' as improved or decreased (thus up_arrow, down_arrow).

Any help (or a push in the right direction) would be seriously appreciated. Thanks
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Posts: 4,782
Reputation: iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light 
Rep Power: 17
Solved Threads: 319
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Industrious Poster

Re: Mysql image display

  #2  
Jul 23rd, 2007
The best way to store graphics/images in a database is to not store it in the database. Confused? Of course. Instead of storing the file itself in the database just store the path to the image along with the image name. Store the image in some directory and when you need it just retrieve the filename and path to it.
I'm not a programmer. My attitude starts with ignorance, holds steady at conversation, and ends with a trip to the hospital. Get used to it.
Reply With Quote  
Join Date: Jun 2007
Posts: 181
Reputation: macneato is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 13
macneato's Avatar
macneato macneato is offline Offline
Junior Poster

Re: Mysql image display

  #3  
Jul 24th, 2007
thanks, but i already knew that, yes you can link the images or blob etc.... was hoping for information regarding the actaul query I'd have to use. Yet again, thanks for your somewhat, cocky reply.
Reply With Quote  
Join Date: Aug 2005
Posts: 4,782
Reputation: iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light 
Rep Power: 17
Solved Threads: 319
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Industrious Poster

Re: Mysql image display

  #4  
Jul 25th, 2007
I don't know what you mean. SQL is exactly that, basic structured query language. If you want to do anything more fancy with your data you have to use a language (such as php) to do stuff.
I'm not a programmer. My attitude starts with ignorance, holds steady at conversation, and ends with a trip to the hospital. Get used to it.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MySQL Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the MySQL Forum

All times are GMT -4. The time now is 1:25 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC