file uploading with text and description |
[eluser]swgj19[/eluser]
I am almost through building a simple gallery, but need help on the logic. The gallery is using code from the CI file upload series. I basically have a form that displays title, description, and image field to upload an image. I have already set up where the image uploads to a directory and makes a thumb on the server. That was not to difficult. Now I am trying to upload a title and description with an image id stored in the db. The image id will have to be joined with the title and description id. I will also add validation to prevent sql injection. So, what are the steps(logic) to assign id to an image. Store the images. Relate the title and description id to the image id. So when the gallery is viewed, the title and description will be next to the correct corresponding image. Here is the page where the title and description will be next the image http://www.cradlewebdesign.com/index.php/gallery/index Thanks. Controller Code: <?php Model Code: <?php View Code: <div id="upload"> |
Messages In This Thread |
file uploading with text and description - by El Forum - 11-09-2012, 10:40 PM
file uploading with text and description - by El Forum - 11-09-2012, 11:09 PM
file uploading with text and description - by El Forum - 11-10-2012, 06:42 AM
file uploading with text and description - by El Forum - 11-10-2012, 11:18 PM
file uploading with text and description - by El Forum - 11-11-2012, 03:42 AM
file uploading with text and description - by El Forum - 11-11-2012, 11:49 AM
file uploading with text and description - by El Forum - 11-11-2012, 02:31 PM
file uploading with text and description - by El Forum - 11-11-2012, 09:07 PM
file uploading with text and description - by El Forum - 11-11-2012, 09:20 PM
file uploading with text and description - by El Forum - 11-12-2012, 01:51 AM
file uploading with text and description - by El Forum - 11-12-2012, 05:43 AM
file uploading with text and description - by El Forum - 11-12-2012, 05:42 PM
|