PHP uploading multiple images and inserting into database - 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: PHP uploading multiple images and inserting into database (/showthread.php?tid=60245) |
PHP uploading multiple images and inserting into database - El Forum - 02-13-2014 [eluser]Unknown[/eluser] i want the user to be able to upload multiple images. Is there a way to store the paths of say 3 images under one field in the database? I mean having all of the image paths in the same column like so Images | date images/file1.jpg, images/file2.jpg, images/file3.jpg | Thursday... Code: <ul id="image_upload"> </ul> <br><br> then i check the files with php and attempt to insert to the database Code: if (!empty($_FILES['image'])){ this code only uploads the first image to the temp folder and only one path into the database |