•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 373,929 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,254 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:
Views: 1364 | Replies: 3
![]() |
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
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
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.
Member of: F-ugly code club
Join today don't delay!
Join today don't delay!
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb MySQL Marketplace
Similar Threads
- Data from mysql in a 3 columns table (PHP)
- mysql search and display data help.... (MySQL)
- Keybindings and Image Display (Python)
- Php Mysql Image Help Please!!! (PHP)
- php mysql image again PLEASE HELP (PHP)
Other Threads in the MySQL Forum
- Previous Thread: Hybrid Environment
- Next Thread: time to time data updates,to access that data time to time



Linear Mode