CodeIgniter Forums
How do i refresh my database results after an upload - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: How do i refresh my database results after an upload (/showthread.php?tid=41605)



How do i refresh my database results after an upload - El Forum - 05-12-2011

[eluser]Unknown[/eluser]
Hi,

I have a page showing a list of images from a database, with an upload form at the top,

After an image has been uploaded, how do i have my database results updated, without having to refresh the page?


How do i refresh my database results after an upload - El Forum - 05-12-2011

[eluser]boltsabre[/eluser]
You'll have to use AJAX to make another call to your database after your upload and re-display the results with the new upload - there are several video tutorials (in the tutorial section) on here about how to implement AJAX with CI.