954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Store div images in mysql database

hi,
I developed one web application and I have created div in JavaScript and on that div I have created more than one images and when I click on save button i want to save all images on to the database and when I retrieve that image from database as it is again displayed on that div.
So how to get all images from that div and store into the database and retrieve again.......

Pravinrasal
Junior Poster in Training
54 posts since Jul 2011
Reputation Points: 19
Solved Threads: 0
 

do you give those images an id in the html? if so, you can use this id.
for instance, if your images are stored with id's img001, img002, img003, ..., imgxxx
you could write a script that iterates over them, and, as long as he finds the next image, write it to the database.

when reading, do the opposite

stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: