Welcome Guest, Not a member yet? Register   Sign In
Image upload to database
#1

[eluser]anpmtp[/eluser]
How to upload images to database using codeigniter?
#2

[eluser]Narkboy[/eluser]
[quote author="anpmtp" date="1295638181"]How to upload images to database using codeigniter?[/quote]

That's a pretty broad question. If you want someone to do the work and then post code, you might be out of luck.

First, read the manual - specifically: file uploading class and database class and the file helper.

Second, decide if you actually want to store the images in the database, or store them on your web server and track them in the database. If you're going to have more than a few, I would suggest the second method.

Third, create a file upload function - do it in a controller for ease, and follow the steps in the file uploading class guide.

Fourth, decide what information you need to store for each image, and create a db table to hold that info. Write a function to create a record.

Last, tie them together.

If you have some working code, post it here and we'll be glad to help!




Theme © iAndrew 2016 - Forum software by © MyBB