Store an image location in mysql db for it to appear in dynamic table.
I've got a dynamic table and i want to add a new column that will show the image that i have linked to it.
How would i save the image location/directory in to the DB so that it would know what image to show for what row/record in the table?
I am using DW if that helps
Anyway, this really has nothing to do with DrunkWalker.
You just need to use some database tool to add the column to your table.
And then *YOU* need to decide what to store in that column.
If all your images will be in the same directory, then I'd recommend just storing the name of the image and nothing more. That way, if you move or rename the directory, your database contents don't need to be changed.
If you are using, say, a two-level sytem (say you have /images/fullsize/butterfly.jpg and /images/thumbnail/butterfly.jpg ), then again store only the last part of the path. Just "fullsize/butterfly.jpg" or "thumbnail/butterfly.jpg". Again, that means you could later move the "images" master directory (or rename it) and the DB contents don't change. Do NOT store the full path to the images.
I do have to ask: What do you mean by "dynamic table"??
|All times are GMT +1. The time now is 10:03 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.