php - CI project error in baseurl() after uploading the project at 000webhost

687

I developed project with codeigniter and this code works fine on localhost.

 This user aleardy  founded.</p>
    <p> <a href="<?php  $id=8; echo base_url('log_c/login/' .$id);?> ">Log in</a> with it or <a href="<?php  $id=5; echo base_url('log_c/Signup/' .$id);?>">Sign up</a> with another user name<br><br>

And after uploading it on 000webhost .

**

  • I write site_url instead of base_url and get this error

**

A PHP Error was encountered

Severity: Warning

Message: mysqli::real_connect() [mysqli.real-connect]: (28000/1045): Access denied for user 'root'@'localhost' (using password: NO)

Filename: mysqli/mysqli_driver.php

Line Number: 161

Backtrace:

File: C:\xampp\htdocs\helloworld\application\models\login_m.php
Line: 7
Function: database

File: C:\xampp\htdocs\helloworld\application\controllers\Log_c.php
Line: 12
Function: model

File: C:\xampp\htdocs\helloworld\index.php
Line: 292
Function: require_once

A Database Error Occurred

Unable to connect to your database server using the provided settings.

Filename: core/Loader.php

Line Number: 323 

how to edit mysqlidriver.php?

People are also looking for solutions to the problem: php - How to avoid storing mail account and database password in plain text in codeigniter 3

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.