CodeIgniter Forums

Full Version: user profile
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i can't upload a photo and save into my databse
my controller is

defined('BASEPATH') OR exit('No direct script access allowed');

class Main extends CI_Controller {
public function __construct() {

    // Load form helper library

    // Load session library

    // Load database

public function index(){

public function save(){


private function do_upload(){

return $url;
return "";

What error message are you getting?

ps - edited your post, adding code tags so it would not be TL;DR