Welcome Guest, Not a member yet? Register   Sign In
Error Message
#1

(This post was last modified: 01-12-2018, 09:46 PM by ciadmin.)

I have loaded my website (REDACTED)from a backup to local server so I can edit. I had it developed in India and I didn't get a functional website. It runs but I can't load the products to it in mass. I want to rewrite the product database. that is the first of several problems. When I try to run it on mamp I get this message: 


A Database Error Occurred
Unable to connect to your database server using the provided settings.
Filename: controllers/Index.php
Line Number: 8

<?php 


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

class Index extends CI_Controller {

    public function __construct() {
parent::__construct();
    }

    public function index() {
$dataa = array(
    'bType' => '1'
);
$data['bannerF'] = $this->banner_model->viewRecordAnyR($dataa);
$dataa = array('category_id' => '6');
$data['necklace'] = $this->banner_model->viewRecordAny($dataa);
$dataa1 = array('category_id' => '7');
$data['earring'] = $this->banner_model->viewRecordAny($dataa1);
$dataa2 = array('category_id' => '8');
$data['rings'] = $this->banner_model->viewRecordAny($dataa2);
$dataa3 = array('category_id' => '9');
$data['bractlets'] = $this->banner_model->viewRecordAny($dataa3);
$dataa4 = array('banner_id' => '39');
$data['fiftyp'] = $this->banner_model->viewRecordAny($dataa4);
$dataa5 = array('banner_id' => '53');
$data['sixp'] = $this->banner_model->viewRecordAny($dataa5);
//$dataa4 = array('p_discount' => '50');
//$data['fiftyp'] = $this->product_model->viewRecordAnyR($dataa4);
$data['head_title'] = 'Online Shopping Site For Mobile, Laptops, Computers';
$this->load->view('front/index', $data);
    }

Reply


Messages In This Thread
Error Message - by Sailor - 01-12-2018, 07:56 PM
RE: Error Message - by natanfelles - 01-12-2018, 09:54 PM
RE: Error Message - by Sailor - 01-13-2018, 01:14 AM
RE: Error Message - by jreklund - 01-13-2018, 01:56 AM
RE: Error Message - by Sailor - 01-13-2018, 02:18 AM
RE: Error Message - by jreklund - 01-13-2018, 04:44 AM
RE: Error Message - by Sailor - 01-13-2018, 06:27 AM
RE: Error Message - by jreklund - 01-13-2018, 07:34 AM
RE: Error Message - by Sailor - 01-13-2018, 06:51 PM
RE: Error Message - by Sailor - 01-13-2018, 10:53 PM
RE: Error Message - by jreklund - 01-14-2018, 04:02 AM
RE: Error Message - by InsiteFX - 01-14-2018, 04:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB