CoderFunda
  • Home
  • About us
    • Contact Us
    • Disclaimer
    • Privacy Policy
    • About us
  • Home
  • Php
  • HTML
  • CSS
  • JavaScript
    • JavaScript
    • Jquery
    • JqueryUI
    • Stock
  • SQL
  • Vue.Js
  • Python
  • Wordpress
  • C++
    • C++
    • C
  • Laravel
    • Laravel
      • Overview
      • Namespaces
      • Middleware
      • Routing
      • Configuration
      • Application Structure
      • Installation
    • Overview
  • DBMS
    • DBMS
      • PL/SQL
      • SQLite
      • MongoDB
      • Cassandra
      • MySQL
      • Oracle
      • CouchDB
      • Neo4j
      • DB2
      • Quiz
    • Overview
  • Entertainment
    • TV Series Update
    • Movie Review
    • Movie Review
  • More
    • Vue. Js
    • Php Question
    • Php Interview Question
    • Laravel Interview Question
    • SQL Interview Question
    • IAS Interview Question
    • PCS Interview Question
    • Technology
    • Other

28 September, 2018

CodeIgniter framework Tutorial

 Programing Coderfunda     September 28, 2018     No comments   

CodeIgniter a very popular and powerful MVC framework which is used to develop web applications. It is a free and Open source PHP framework.

What You Should Already Know

Before you continue you should have a basic understanding of the following:
  1. HTML
  2. PHP

History

CodeIgniter was created by EllisLab, and is now a project of the British Columbia Institute of Technology.
The latest version of CodeIgniter framework is 3.1.5.

License

The source code of CodeIgniter is hosted on GitHub and licensed under the terms of MIT License.
As it is open source software, you are permitted to copy, modify and distribute this software and its documentation for any purpose under following conditions.
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

CodeIgniter framework Tutorial

 Programing Funda     September 28, 2018     No comments   

CodeIgniter a very popular and powerful MVC framework which is used to develop web applications. It is a free and Open source PHP framework.

What You Should Already Know

Before you continue you should have a basic understanding of the following:
  1. HTML
  2. PHP

History

CodeIgniter was created by EllisLab, and is now a project of the British Columbia Institute of Technology.
The latest version of CodeIgniter framework is 3.1.5.

License

The source code of CodeIgniter is hosted on GitHub and licensed under the terms of MIT License.
As it is open source software, you are permitted to copy, modify and distribute this software and its documentation for any purpose under following conditions.
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

26 September, 2018

Show the data in front end user

 Programing Coderfunda     September 26, 2018     No comments   

<footer class="re-footer-section">
<?php 
$rest = $this->db->where('id','1')->get('site_settings')->row();
?>


Note: if you have contact page and you want to show the data other page in contect page then  you use upper code then your data show in all pages 

Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Show the data in front end user

 Programing Funda     September 26, 2018     No comments   

<footer class="re-footer-section">
<?php 
$rest = $this->db->where('id','1')->get('site_settings')->row();
?>


Note: if you have contact page and you want to show the data other page in contect page then  you use upper code then your data show in all pages 

Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

24 September, 2018

insert the data in codeigniter with database very simple way

 Programing Coderfunda     September 24, 2018     No comments   

database Name : contact 

View file name : contact 


 Mode.php

public function insertdata($data)
{
$data= array
(
'name'=>$this->input->post('name'),
'email'=>$this->input->post('email'),
'subject'=>$this->input->post('subject'),
'message'=>$this->input->post('message'),
);
$datas = $this->db->insert('contact',$data);

}


Controller.php

public function contact() 
  {
  if($this->input->post('submit') == 'Send' ){
    $data= array(
'name'=>$this->input->post('name'),
'email'=>$this->input->post('email'),
'subject'=>$this->input->post('subject'),
'message'=>$this->input->post('message')
);
      $data = $this->home_model->insertdata($data);
    }

    $data['menu'] = $this->admin_model->get_menu();
    $this->load->view('frontuser/contact',$data);
  }
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

insert the data in codeigniter with database very simple way

 Programing Funda     September 24, 2018     No comments   

database Name : contact 

View file name : contact 


 Mode.php

public function insertdata($data)
{
$data= array
(
'name'=>$this->input->post('name'),
'email'=>$this->input->post('email'),
'subject'=>$this->input->post('subject'),
'message'=>$this->input->post('message'),
);
$datas = $this->db->insert('contact',$data);

}


Controller.php

public function contact() 
  {
  if($this->input->post('submit') == 'Send' ){
    $data= array(
'name'=>$this->input->post('name'),
'email'=>$this->input->post('email'),
'subject'=>$this->input->post('subject'),
'message'=>$this->input->post('message')
);
      $data = $this->home_model->insertdata($data);
    }

    $data['menu'] = $this->admin_model->get_menu();
    $this->load->view('frontuser/contact',$data);
  }
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

20 September, 2018

Image Upload in Database Codeigniter Very Simple Way

 Programing Coderfunda     September 20, 2018     No comments   


Controller.php
public function update_account_setting()
{

$id = $this->session->userdata('uid');

        $config['upload_path']   = './uploads/';
$config['allowed_types'] = 'gif|jpg|jpeg|png';
      $this->load->library('upload', $config);
      $this->upload->initialize($config);
      if(!$this->upload->do_upload('site_logo')){
      $error = array('error' => $this->upload->display_errors());
      }
      else
      {
        $data = array('upload_data' => $this->upload->data());
              $site_logo['site_logo'] = $data['upload_data']['file_name'];
              $this->admin_model->update_account_setting($id,$site_logo);
      }
      if(!$this->upload->do_upload('site_favicon')){
      $error = array('error' => $this->upload->display_errors());
      //print_r($error);die;
      }
      else
      {
        $data = array('upload_data' => $this->upload->data());
              $site_favicon['site_favicon'] = $data['upload_data']['file_name'];
              $this->admin_model->update_account_setting($id,$site_favicon);
      }
      $data = array
(
'sitename'=>$this->input->post('sitename'),
'baseurl'=>$this->input->post('baseurl'),
'conatct_address'=>$this->input->post('conatct_address'),
'contact_number'=>$this->input->post('contact_number'),
'contact_email'=>$this->input->post('contact_email'),
'smtp_hostname'=>$this->input->post('smtp_hostname'),
'smtp_username'=>$this->input->post('smtp_username'),
'smtp_password'=>$this->input->post('smtp_password'),
'smtp_port'=>$this->input->post('smtp_port'),
'cod_enable'=>$this->input->post('cod_enable'),
'payu_merchant'=>$this->input->post('payu_merchant'),
'payu_salt'=>$this->input->post('payu_salt'),
'payu_action'=>$this->input->post('payu_action'),
);
$this->load->model('admin_model');
$data ['rest'] = $this->admin_model->update_account_setting($id,$data);
if(validation_errors() != false)
{
    $this->session->set_flashdata('error_message','Data Unsuccessful Updated.');
redirect('admin/account_setting');
      }
      else
      {
      $this->session->set_flashdata('message_name','Data Updated.');
redirect('admin/account_setting');
      }

}
Admin_Model;php
public function update_account_setting($id,$data)
{

         $this->db->where('id',$id);
$statement = $this->db->update('site_settings',$data);

        if($statement)
        {
            return  'true';
        }
         else
        {
          return 'false';
        }   

}
x
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Image Upload in Database Codeigniter Very Simple Way

 Programing Funda     September 20, 2018     No comments   


Controller.php
public function update_account_setting()
{

$id = $this->session->userdata('uid');

        $config['upload_path']   = './uploads/';
$config['allowed_types'] = 'gif|jpg|jpeg|png';
      $this->load->library('upload', $config);
      $this->upload->initialize($config);
      if(!$this->upload->do_upload('site_logo')){
      $error = array('error' => $this->upload->display_errors());
      }
      else
      {
        $data = array('upload_data' => $this->upload->data());
              $site_logo['site_logo'] = $data['upload_data']['file_name'];
              $this->admin_model->update_account_setting($id,$site_logo);
      }
      if(!$this->upload->do_upload('site_favicon')){
      $error = array('error' => $this->upload->display_errors());
      //print_r($error);die;
      }
      else
      {
        $data = array('upload_data' => $this->upload->data());
              $site_favicon['site_favicon'] = $data['upload_data']['file_name'];
              $this->admin_model->update_account_setting($id,$site_favicon);
      }
      $data = array
(
'sitename'=>$this->input->post('sitename'),
'baseurl'=>$this->input->post('baseurl'),
'conatct_address'=>$this->input->post('conatct_address'),
'contact_number'=>$this->input->post('contact_number'),
'contact_email'=>$this->input->post('contact_email'),
'smtp_hostname'=>$this->input->post('smtp_hostname'),
'smtp_username'=>$this->input->post('smtp_username'),
'smtp_password'=>$this->input->post('smtp_password'),
'smtp_port'=>$this->input->post('smtp_port'),
'cod_enable'=>$this->input->post('cod_enable'),
'payu_merchant'=>$this->input->post('payu_merchant'),
'payu_salt'=>$this->input->post('payu_salt'),
'payu_action'=>$this->input->post('payu_action'),
);
$this->load->model('admin_model');
$data ['rest'] = $this->admin_model->update_account_setting($id,$data);
if(validation_errors() != false)
{
    $this->session->set_flashdata('error_message','Data Unsuccessful Updated.');
redirect('admin/account_setting');
      }
      else
      {
      $this->session->set_flashdata('message_name','Data Updated.');
redirect('admin/account_setting');
      }

}
Admin_Model;php
public function update_account_setting($id,$data)
{

         $this->db->where('id',$id);
$statement = $this->db->update('site_settings',$data);

        if($statement)
        {
            return  'true';
        }
         else
        {
          return 'false';
        }   

}
x
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

CodeIgniter Form Validation – Setting Rules, Setting Error Messages and Repopulating Form

 Programing Coderfunda     September 20, 2018     No comments   

ViewFile.
<?php if($this->session->flashdata("message_name")): ?>
<div class="alert alert-success" name="message_name">
              <?php echo $this->session->flashdata("message_name"); ?>
</div>              
    <?php endif; ?>


Controller:

$data ['rest'] = $this->admin_model->update_account_setting($id,$data);

if(validation_errors() != false) 
{
    $this->session->set_flashdata('error_message','Data Unsuccessful Updated.');
redirect('admin/account_setting');
      }
      else
      {
      $this->session->set_flashdata('message_name','Data Updated.');
redirect('admin/account_setting');

      }

Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

CodeIgniter Form Validation – Setting Rules, Setting Error Messages and Repopulating Form

 Programing Funda     September 20, 2018     No comments   

ViewFile.
<?php if($this->session->flashdata("message_name")): ?>
<div class="alert alert-success" name="message_name">
              <?php echo $this->session->flashdata("message_name"); ?>
</div>              
    <?php endif; ?>


Controller:

$data ['rest'] = $this->admin_model->update_account_setting($id,$data);

if(validation_errors() != false) 
{
    $this->session->set_flashdata('error_message','Data Unsuccessful Updated.');
redirect('admin/account_setting');
      }
      else
      {
      $this->session->set_flashdata('message_name','Data Updated.');
redirect('admin/account_setting');

      }

Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

15 September, 2018

Upload image in Codeigniter Very Simple Way

 Programing Coderfunda     September 15, 2018     codeigniter     No comments   

Hi Guys ! if you Want to Upload image with Codeigniter. So you use these code and work very fast.

1)First you create twoView File.

1. Upload_Form.php
2 Upload_Success.php

Then you create Controller File.

Upload.php

Then you create a folder in root ,"uploads" name .
Your images. file save in upload folder. So as on you 
copy the code and put sequince waise.

Run the program . if any question arise in your mind so you can comment in comment box.




Upload_Form.php

<html>
<head>
<title>Upload Form</title>
</head>
<body>

<?php echo $error;?>

<?php echo form_open_multipart('upload/do_upload');?>

<input type="file" name="userfile" size="20" />

<br /><br />

<input type="submit" value="upload" />

</form>

</body>
</html>


Upload_Success.php
<html>
<head>
<title>Upload Form</title>
</head>
<body>

<h3>Your file was successfully uploaded!</h3>

<ul>
<?php foreach ($upload_data as $item => $value):?>
<li><?php echo $item;?>: <?php echo $value;?></li>
<?php endforeach; ?>
</ul>

<p><?php echo anchor('upload', 'Upload Another File!'); ?></p>

</body>

</html>

.......

Controller
Upload.php

<?php

class Upload extends CI_Controller {

        public function __construct()
        {
                parent::__construct();
                $this->load->helper(array('form', 'url'));
        }

        public function index()
        {
                $this->load->view('upload_form', array('error' => ' ' ));
        }

        public function do_upload()
        {
                $config['upload_path']          = './uploads/';
                $config['allowed_types']        = 'gif|jpg|png';
                $config['max_size']             = 100;
                $config['max_width']            = 1024;
                $config['max_height']           = 768;

                $this->load->library('upload', $config);

                if ( ! $this->upload->do_upload('userfile'))
                {
                        $error = array('error' => $this->upload->display_errors()
                        $this->load->view('upload_form', $error);
                }
                else
                {
                        $data = array('upload_data' => $this->upload->data());
                        $this->load->view('upload_success', $data);
                }
        }
}

?>

Model

user_model.php

...............
Dont Use In Uploading File ,,,you can learn only some secretly ..

insert edit view

<?php
class User_model extends CI_Model {

    public function __construct()
    {
        $this->load->database();
    }
    
    public function get_user($id = 0)
    {
        if ($id === 0)
        {
            $query = $this->db->get('user');
            return $query->result_array();
        }

        $query = $this->db->get_where('user', array('id' => $id));
        return $query->row_array();
    }
    
    public function get_user_login($email, $password)
    {
        $query = $this->db->get_where('user', array('email' => $email, 'password' => $password));        
        //return $query->num_rows();
        return $query->row_array();
    }
    
    public function set_user($id = 0)
    {
        $data = array(
            'firstname' => $this->input->post('firstname'),
            'lastname' => $this->input->post('lastname'),
            'email' => $this->input->post('email'),
            'password' => $this->input->post('password'),
            'updated_at' => date('Y-m-d H:i:s')
        );
            
        if ($id == 0) {
            return $this->db->insert('user', $data);
        } else {
            $this->db->where('id', $id);
            return $this->db->update('user', $data);
        }
    }
    
    public function delete_user($id)
    {
        $this->db->where('id', $id);
        return $this->db->delete('user');
    }    
    

}

Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Upload image in Codeigniter Very Simple Way

 Programing Funda     September 15, 2018     codeigniter     No comments   

Hi Guys ! if you Want to Upload image with Codeigniter. So you use these code and work very fast.

1)First you create twoView File.

1. Upload_Form.php
2 Upload_Success.php

Then you create Controller File.

Upload.php

Then you create a folder in root ,"uploads" name .
Your images. file save in upload folder. So as on you 
copy the code and put sequince waise.

Run the program . if any question arise in your mind so you can comment in comment box.




Upload_Form.php

<html>
<head>
<title>Upload Form</title>
</head>
<body>

<?php echo $error;?>

<?php echo form_open_multipart('upload/do_upload');?>

<input type="file" name="userfile" size="20" />

<br /><br />

<input type="submit" value="upload" />

</form>

</body>
</html>


Upload_Success.php
<html>
<head>
<title>Upload Form</title>
</head>
<body>

<h3>Your file was successfully uploaded!</h3>

<ul>
<?php foreach ($upload_data as $item => $value):?>
<li><?php echo $item;?>: <?php echo $value;?></li>
<?php endforeach; ?>
</ul>

<p><?php echo anchor('upload', 'Upload Another File!'); ?></p>

</body>

</html>

.......

Controller
Upload.php

<?php

class Upload extends CI_Controller {

        public function __construct()
        {
                parent::__construct();
                $this->load->helper(array('form', 'url'));
        }

        public function index()
        {
                $this->load->view('upload_form', array('error' => ' ' ));
        }

        public function do_upload()
        {
                $config['upload_path']          = './uploads/';
                $config['allowed_types']        = 'gif|jpg|png';
                $config['max_size']             = 100;
                $config['max_width']            = 1024;
                $config['max_height']           = 768;

                $this->load->library('upload', $config);

                if ( ! $this->upload->do_upload('userfile'))
                {
                        $error = array('error' => $this->upload->display_errors()
                        $this->load->view('upload_form', $error);
                }
                else
                {
                        $data = array('upload_data' => $this->upload->data());
                        $this->load->view('upload_success', $data);
                }
        }
}

?>

Model

user_model.php

...............
Dont Use In Uploading File ,,,you can learn only some secretly ..

insert edit view

<?php
class User_model extends CI_Model {

    public function __construct()
    {
        $this->load->database();
    }
    
    public function get_user($id = 0)
    {
        if ($id === 0)
        {
            $query = $this->db->get('user');
            return $query->result_array();
        }

        $query = $this->db->get_where('user', array('id' => $id));
        return $query->row_array();
    }
    
    public function get_user_login($email, $password)
    {
        $query = $this->db->get_where('user', array('email' => $email, 'password' => $password));        
        //return $query->num_rows();
        return $query->row_array();
    }
    
    public function set_user($id = 0)
    {
        $data = array(
            'firstname' => $this->input->post('firstname'),
            'lastname' => $this->input->post('lastname'),
            'email' => $this->input->post('email'),
            'password' => $this->input->post('password'),
            'updated_at' => date('Y-m-d H:i:s')
        );
            
        if ($id == 0) {
            return $this->db->insert('user', $data);
        } else {
            $this->db->where('id', $id);
            return $this->db->update('user', $data);
        }
    }
    
    public function delete_user($id)
    {
        $this->db->where('id', $id);
        return $this->db->delete('user');
    }    
    

}

Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

How to Upload Image and File in Database by CodeIgniter

 Programing Coderfunda     September 15, 2018     codeigniter     No comments   

1).  Create View.php File

2). Create view_model.php File in model folder

3).Create Upload.php File in Controller


View.php File
<div class="card-body">
            <div class="row">
Important Note : Form is very compulsory in action part see and use according to url of your file
              <form method='post' action='<?php echo base_url()?>admin/add_doct' enctype="multipart/form-data"> 
               <div class="col-md-12">
                  <label>Doctor Name</label>
                  <div class="form-group">
                     <?php echo form_input(array("type"=>"text",'name'=>'name'),'',array('class'=>'form-control','placeholder'=>'','required'=>'required')); ?>
                        <span>  <?= $this->session->flashdata('successful_msg');?></span>
                  </div>
                  <div class="form-group">
                     <label>Image </label>

                     <?php echo form_input(array("type"=>"file",'name'=>'images'),'',array('class'=>'form-control','placeholder'=>'','required'=>'required')); ?>
                        <span>  <?= $this->session->flashdata('successful_msg');?></span>
                        <!-- <div class="col-lg-6">
                           <?php //if (isset($upload_error)) echo $upload_error;?>
                        </div> -->
                  </div>
                     <p class="text-center">
                        <?php echo form_submit('submit', 'submit',array("class"=>"btn_1 medium")); ?>
                     </p>
                  </div>   
               </div>
              </form> 
            </div>
         </div>

Model.php

public function add_doct()
{
//$data = $this->db->select(`name`)->get($this->product)->result_array();
$name = $this->input->post('name');
$images = $this->input->post('images');
//print_r($image); die();
$this->db->where('name',$name);
$p = $this->db->get('product')->row();
    if (empty($p)) {
      $data = array(

      'name'=>$this->input->post('name'),
      'images'=>$this->input->post('images')
      );
      $this->db->insert('product',$data);
      return 1;
    }
    else
    {
    return 0;
    }

}


Controller.php
public function add_doct()
{
$this->load->model('Doctor');
$data['page_title'] = "Add Product List";
if($this->input->post())
{
$values = $this->input->post();
$config['upload_path']          = './uploads';
$config['allowed_types']        = 'png|jpg|jpeg|gif';
$this->load->library('upload', $config);
$filedata['file_name'] = "";
$error = "";
if (!$this->upload->do_upload('images')):
    $error = array('error' => $this->upload->display_errors());
    //print_r($error); die();
else:
    $filedata = array('upload_data' => $this->upload->data());
endif;
if($error==""):
$values['images'] = $filedata['upload_data']['file_name'];
endif;
//$values['creation_date'] = time();
$datas = array(

      'name'=>$values['name'], //database name 'name'
      'images'=>$values['images'] //database name images
      );
$this->db->insert("database Name",$datas);
$this->session->set_flashdata("success_msg","Pruduct has been created");
redirect(base_url('admin/drdetailing/add_productlist'));
$this->load->template('admin/drdetailing/add_productlist',$data,1);
}
if($ins == 1){
$this->session->set_flashdata('message_name','Data Submitted');
redirect('admin/drdetailing/view_productlist');
}else{
$this->session->set_flashdata('message_name','This name allready exist');
redirect('admin/drdetailing/view_productlist');
}
$data['page_title'] = "Add Doctor & you can change name";
$this->load->template('admin/drdetailing/add_productlist',$data,1);

}


Important Note : Change :

Database name : Name & images

file


Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

How to Upload Image and File in Database by CodeIgniter

 Programing Funda     September 15, 2018     codeigniter     No comments   

1).  Create View.php File

2). Create view_model.php File in model folder

3).Create Upload.php File in Controller


View.php File
<div class="card-body">
            <div class="row">
Important Note : Form is very compulsory in action part see and use according to url of your file
              <form method='post' action='<?php echo base_url()?>admin/add_doct' enctype="multipart/form-data"> 
               <div class="col-md-12">
                  <label>Doctor Name</label>
                  <div class="form-group">
                     <?php echo form_input(array("type"=>"text",'name'=>'name'),'',array('class'=>'form-control','placeholder'=>'','required'=>'required')); ?>
                        <span>  <?= $this->session->flashdata('successful_msg');?></span>
                  </div>
                  <div class="form-group">
                     <label>Image </label>

                     <?php echo form_input(array("type"=>"file",'name'=>'images'),'',array('class'=>'form-control','placeholder'=>'','required'=>'required')); ?>
                        <span>  <?= $this->session->flashdata('successful_msg');?></span>
                        <!-- <div class="col-lg-6">
                           <?php //if (isset($upload_error)) echo $upload_error;?>
                        </div> -->
                  </div>
                     <p class="text-center">
                        <?php echo form_submit('submit', 'submit',array("class"=>"btn_1 medium")); ?>
                     </p>
                  </div>   
               </div>
              </form> 
            </div>
         </div>

Model.php

public function add_doct()
{
//$data = $this->db->select(`name`)->get($this->product)->result_array();
$name = $this->input->post('name');
$images = $this->input->post('images');
//print_r($image); die();
$this->db->where('name',$name);
$p = $this->db->get('product')->row();
    if (empty($p)) {
      $data = array(

      'name'=>$this->input->post('name'),
      'images'=>$this->input->post('images')
      );
      $this->db->insert('product',$data);
      return 1;
    }
    else
    {
    return 0;
    }

}


Controller.php
public function add_doct()
{
$this->load->model('Doctor');
$data['page_title'] = "Add Product List";
if($this->input->post())
{
$values = $this->input->post();
$config['upload_path']          = './uploads';
$config['allowed_types']        = 'png|jpg|jpeg|gif';
$this->load->library('upload', $config);
$filedata['file_name'] = "";
$error = "";
if (!$this->upload->do_upload('images')):
    $error = array('error' => $this->upload->display_errors());
    //print_r($error); die();
else:
    $filedata = array('upload_data' => $this->upload->data());
endif;
if($error==""):
$values['images'] = $filedata['upload_data']['file_name'];
endif;
//$values['creation_date'] = time();
$datas = array(

      'name'=>$values['name'], //database name 'name'
      'images'=>$values['images'] //database name images
      );
$this->db->insert("database Name",$datas);
$this->session->set_flashdata("success_msg","Pruduct has been created");
redirect(base_url('admin/drdetailing/add_productlist'));
$this->load->template('admin/drdetailing/add_productlist',$data,1);
}
if($ins == 1){
$this->session->set_flashdata('message_name','Data Submitted');
redirect('admin/drdetailing/view_productlist');
}else{
$this->session->set_flashdata('message_name','This name allready exist');
redirect('admin/drdetailing/view_productlist');
}
$data['page_title'] = "Add Doctor & you can change name";
$this->load->template('admin/drdetailing/add_productlist',$data,1);

}


Important Note : Change :

Database name : Name & images

file


Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Newer Posts Older Posts Home

Meta

Popular Posts

  • Sitaare Zameen Par Full Movie Review
     Here’s a  complete Vue.js tutorial for beginners to master level , structured in a progressive and simple way. It covers all essential topi...
  • AI foot tracking model
    I am a student doing a graduation project. I urgently need to deal with this model (I am attaching a link). I've never worked with pytho...
  • Laravel Search String
      Laravel Search String is a package by   Loris Leiva   that generates database queries based on one unique string using a simple and custom...
  • Writing and debugging Eloquent queries with Tinkerwell
    In this article, let's look into the options that you can use with Tinkerwell to write and debug Eloquent queries easier. The post Wr...
  • The token request was rejected by the remote server
    error:invalid_granterror_description:The token request was rejected by the remote server.error_uri: https://documentation.openiddict.com/err...

Categories

  • Ajax (26)
  • Bootstrap (30)
  • DBMS (42)
  • HTML (12)
  • HTML5 (45)
  • JavaScript (10)
  • Jquery (34)
  • Jquery UI (2)
  • JqueryUI (32)
  • Laravel (1017)
  • Laravel Tutorials (23)
  • Laravel-Question (6)
  • Magento (9)
  • Magento 2 (95)
  • MariaDB (1)
  • MySql Tutorial (2)
  • PHP-Interview-Questions (3)
  • Php Question (13)
  • Python (36)
  • RDBMS (13)
  • SQL Tutorial (79)
  • Vue.js Tutorial (69)
  • Wordpress (150)
  • Wordpress Theme (3)
  • codeigniter (108)
  • oops (4)
  • php (853)

Social Media Links

  • Follow on Twitter
  • Like on Facebook
  • Subscribe on Youtube
  • Follow on Instagram

Pages

  • Home
  • Contact Us
  • Privacy Policy
  • About us

Blog Archive

  • July (4)
  • September (100)
  • August (50)
  • July (56)
  • June (46)
  • May (59)
  • April (50)
  • March (60)
  • February (42)
  • January (53)
  • December (58)
  • November (61)
  • October (39)
  • September (36)
  • August (36)
  • July (34)
  • June (34)
  • May (36)
  • April (29)
  • March (82)
  • February (1)
  • January (8)
  • December (14)
  • November (41)
  • October (13)
  • September (5)
  • August (48)
  • July (9)
  • June (6)
  • May (119)
  • April (259)
  • March (122)
  • February (368)
  • January (33)
  • October (2)
  • July (11)
  • June (29)
  • May (25)
  • April (168)
  • March (93)
  • February (60)
  • January (28)
  • December (195)
  • November (24)
  • October (40)
  • September (55)
  • August (6)
  • July (48)
  • May (2)
  • January (2)
  • July (6)
  • June (6)
  • February (17)
  • January (69)
  • December (122)
  • November (56)
  • October (92)
  • September (76)
  • August (6)

Loading...

Laravel News

Loading...

Copyright © CoderFunda | Powered by Blogger
Design by Coderfunda | Blogger Theme by Coderfunda | Distributed By Coderfunda