• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
save image path to database and then display it

#4
[eluser]mdowns[/eluser]
First get the full path of the image you uploaded. Read more about the File Uploading Class in the user guide.
Code:
$filepath = $this->upload->data()['full_path'];

Then insert that into your database.

Hope that helps.


Messages In This Thread
save image path to database and then display it - by El Forum - 09-15-2008, 12:19 PM
save image path to database and then display it - by El Forum - 09-15-2008, 02:31 PM
save image path to database and then display it - by El Forum - 09-15-2008, 02:56 PM
save image path to database and then display it - by El Forum - 09-15-2008, 03:57 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.