A PHP Error was encountered

Severity: Warning

Message: A non-numeric value encountered

Filename: libraries/Halaman.php

Line Number: 27

Backtrace:

File: /home/k1229591/public_html/application/libraries/Halaman.php
Line: 27
Function: _error_handler

File: /home/k1229591/public_html/application/controllers/News.php
Line: 38
Function: datahalaman

File: /home/k1229591/public_html/index.php
Line: 1
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home/k1229591/public_html/application/models/Crud_model.php
Line: 25
Function: get

File: /home/k1229591/public_html/application/models/Crud_model.php
Line: 30
Function: bacaData

File: /home/k1229591/public_html/application/controllers/News.php
Line: 56
Function: bacaBanyakData

File: /home/k1229591/public_html/index.php
Line: 1
Function: require_once

Database Error

A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-8, 8' at line 5

SELECT `tb_news`.`name`, `tb_news`.`url`, `tb_news`.`img`, `tb_news`.`tayang`, `tb_news`.`date`, `tb_content`.`description` FROM `tb_news`, `tb_content` WHERE `tb_news`.`publish` = 1 AND `tb_content`.`type` = 2 AND `tb_news`.`id` = `tb_content`.`cat` AND `tb_news`.`type` = 1 AND `tb_news`.`tayang` < '2024-04-29 05:05:57' ORDER BY `tayang` DESC LIMIT -8, 8

Filename: models/Crud_model.php

Line Number: 25