Welcome Guest, Not a member yet? Register   Sign In
How to store image [full_path] in database
#4

[eluser]ciGR[/eluser]
For example, you have a two fields in the database table title and image_path

$filepath = $data['full_path'];(or you can save only the image name with $data['file_name'];
$data = array(
'title' => 'The title for this image' ,
'image_path' => $filepath
);

$this->db->insert('your_table', $data);

You save in the database the path(the path it's also text or better you can set it as varchar)


Messages In This Thread
How to store image [full_path] in database - by El Forum - 02-19-2010, 06:22 PM
How to store image [full_path] in database - by El Forum - 02-20-2010, 02:04 AM
How to store image [full_path] in database - by El Forum - 02-20-2010, 02:21 PM
How to store image [full_path] in database - by El Forum - 02-20-2010, 02:46 PM
How to store image [full_path] in database - by El Forum - 02-20-2010, 03:20 PM
How to store image [full_path] in database - by El Forum - 02-20-2010, 04:39 PM
How to store image [full_path] in database - by El Forum - 02-20-2010, 06:51 PM
How to store image [full_path] in database - by El Forum - 09-23-2010, 10:34 AM
How to store image [full_path] in database - by El Forum - 07-05-2011, 07:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB