How can i insert the filename of upload into database? |
[eluser]Unknown[/eluser]
//create array to load to database $insert_data = array( 'name' => $image_data['file_name'], 'path' => $image_data['full_path'], 'thumb_path'=> $image_data['file_path'] . 'thumbs/'. $image_data['file_name'], 'tag' => $tag ); $this->db->insert('photos', $insert_data);//load array to database ===================== Hi i am copy this code for you from http://stackoverflow.com/questions/36302...upload-lib And i hope it will be help for you, just get file name using $image_data['file_name'] and create an array then put it in this insert function $this->db->insert('photos', $insert_data) ===================== |
Messages In This Thread |
How can i insert the filename of upload into database? - by El Forum - 09-07-2012, 08:39 AM
How can i insert the filename of upload into database? - by El Forum - 09-07-2012, 09:10 AM
How can i insert the filename of upload into database? - by El Forum - 09-07-2012, 09:44 AM
How can i insert the filename of upload into database? - by El Forum - 09-07-2012, 10:56 AM
|