I followed this tutorial on how to upload a photo in a codeigniter folder:
http://codeigniter.com/user_guide/libraries/file_uploading.html
Can anybody tell me how can I store the path of the photo I just uploaded in my db?
Let’s say have table called photo_paths
thanks in advance
This assumes you have an Images table.
Configure the file upload as follows:
Then on successful upload insert the file information into the database.
$upload info is retrived from the file_uploader class on successful upload using the following:
If you want to see exactly what is returned: