在000webhost上传项目后,在baseurl()中出现CI项目错误

时间:2016-03-16 09:18:10

标签: php codeigniter xampp

我使用codeigniter开发了一个项目,这段代码在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>

将其上传到000webhost后。

**

  • 我写了site_url而不是base_url并得到此错误

**

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 

如何编辑mysqlidriver.php?

0 个答案:

没有答案