Welcome Guest, Not a member yet? Register   Sign In

hai...I am new to the CODEIGNITER.The data is succussfully inserted into the database.I uploaded one image for profile.And i disply that uploaded image.But that image not move to the specified folder.Because of that after refreshing that image is not displying ..................plz solve this problem.My controller,model,view is given below

Thanks in advance

function changeprofilephoto($member_id)
foreach ($_FILES["images"]["error"] as $key => $error)
if ($error == UPLOAD_ERR_OK) {
$name = $_FILES["images"]["name"][$key];
move_uploaded_file( $_FILES["images"]["tmp_name"][$key], $this->profilephotos_path. $_FILES['images']['name'][$key]);
$this->create_thumbnail($this->profilephotos_path. $_FILES['images']['name'][$key],$this->profilephotosthumb_path,148,148);
$inputdata['profile_photo'] = $name;
$res = $this->db->update('rcb_members',$inputdata);

Messages In This Thread
UPLOADING PROFILE PICTURE - by El Forum - 02-15-2013, 11:44 PM
UPLOADING PROFILE PICTURE - by El Forum - 02-16-2013, 05:04 AM

Theme © iAndrew 2016 - Forum software by © MyBB