A PHP Error was encountered

Severity: Warning

Message: mysqli::real_connect(): (HY000/2002): Connection refused

Filename: mysqli/mysqli_driver.php

Line Number: 201

Backtrace:

File: /home/akilanew/public_html/application/controllers/Weather.php
Line: 8
Function: __construct

File: /home/akilanew/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/akilanew/public_html/system/core/Exceptions.php:271)

Filename: models/Home_model.php

Line Number: 1

Backtrace:

File: /home/akilanew/public_html/application/models/Home_model.php
Line: 1
Function: header

File: /home/akilanew/public_html/application/controllers/Weather.php
Line: 10
Function: model

File: /home/akilanew/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: mysqli::real_connect(): (HY000/2002): Connection refused

Filename: mysqli/mysqli_driver.php

Line Number: 201

Backtrace:

File: /home/akilanew/public_html/application/models/Home_model.php
Line: 11
Function: database

File: /home/akilanew/public_html/application/controllers/Weather.php
Line: 10
Function: model

File: /home/akilanew/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/akilanew/public_html/system/core/Exceptions.php:271)

Filename: models/Weather_model.php

Line Number: 1

Backtrace:

File: /home/akilanew/public_html/application/models/Weather_model.php
Line: 1
Function: header

File: /home/akilanew/public_html/application/controllers/Weather.php
Line: 11
Function: model

File: /home/akilanew/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/akilanew/public_html/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 570

Backtrace:

An uncaught Exception was encountered

Type: Error

Message: Call to a member function real_escape_string() on bool

Filename: /home/akilanew/public_html/system/database/drivers/mysqli/mysqli_driver.php

Line Number: 391

Backtrace:

File: /home/akilanew/public_html/application/models/Home_model.php
Line: 2108
Function: where

File: /home/akilanew/public_html/application/controllers/Weather.php
Line: 21
Function: getTop

File: /home/akilanew/public_html/index.php
Line: 315
Function: require_once