Welcome Guest, Not a member yet? Register   Sign In
How to get file name to be inserted to database ?
#4

[eluser]ciGR[/eluser]
Hi,
try this
Code:
$img_data = $this->upload->data();
$file_name = $img_data['file_name'];

Also I see in your code the
Code:
echo anchor(base_url().‘index.php/admin/employee’, ‘Back’);
It's not required the base_url and the index page,
you can write
Code:
echo anchor('admin/employee','Back');

Hope to help you.


Messages In This Thread
How to get file name to be inserted to database ? - by El Forum - 02-14-2010, 10:26 AM
How to get file name to be inserted to database ? - by El Forum - 02-14-2010, 10:56 AM
How to get file name to be inserted to database ? - by El Forum - 02-14-2010, 06:22 PM
How to get file name to be inserted to database ? - by El Forum - 02-14-2010, 06:35 PM
How to get file name to be inserted to database ? - by El Forum - 02-15-2010, 07:19 AM
How to get file name to be inserted to database ? - by El Forum - 02-15-2010, 07:27 AM
How to get file name to be inserted to database ? - by El Forum - 02-15-2010, 07:30 AM
How to get file name to be inserted to database ? - by El Forum - 02-15-2010, 07:32 AM
How to get file name to be inserted to database ? - by El Forum - 02-15-2010, 08:34 AM
How to get file name to be inserted to database ? - by El Forum - 02-15-2010, 08:40 AM
How to get file name to be inserted to database ? - by El Forum - 02-15-2010, 08:43 AM
How to get file name to be inserted to database ? - by El Forum - 02-15-2010, 09:17 AM
How to get file name to be inserted to database ? - by El Forum - 02-15-2010, 09:21 AM
How to get file name to be inserted to database ? - by El Forum - 02-15-2010, 09:35 AM
How to get file name to be inserted to database ? - by El Forum - 02-15-2010, 09:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB