Welcome Guest, Not a member yet? Register   Sign In
Database error in localhost
#1

i downloaded the website from server to localhost and getting the following error

PHP Code:
A Database Error Occurred
Unable to connect to your database server using the provided settings
.

Filenamecontrollers/Home.php

Line Number
24 


This is whats contained in the Home.php file

PHP Code:
    *         http://example.com/index.php/welcome
     
*    - or -
     *         
http://example.com/index.php/welcome/index
     
*    - or -
     * 
Since this controller is set as the default controller in
     
config/routes.phpit's displayed at http://example.com/
     *
     * So any other public methods not prefixed with an underscore will
     * map to /index.php/welcome/<method_name>
     * @see https://codeigniter.com/user_guide/general/urls.html
     */


        public function __construct(){
                parent::__construct();
                 $this->load->helper('
form');
                 $this->load->library('
user_agent');
                 $this->load->library('
paypal_lib');
                 $this->load->model('
Ad_model', 'Ad_user');
                 $this->load->model('
User_model', 'user_model');
              $this->load->library('
VRClient');
                 $this->load->library('
form_validation');
           } 



How do i resolve this?
Reply


Messages In This Thread
Database error in localhost - by scatman98 - 02-20-2019, 06:49 PM
RE: Database error in localhost - by php_rocs - 02-20-2019, 09:01 PM
RE: Database error in localhost - by scatman98 - 02-21-2019, 05:52 AM
RE: Database error in localhost - by ciadmin - 02-21-2019, 01:27 AM
RE: Database error in localhost - by scatman98 - 02-21-2019, 05:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB