A PHP Error was encountered

Severity: Warning

Message: Missing argument 1 for Blogmodel::blog_detail(), called in /home/content/54/5792554/html/application/controllers/Index.php on line 331 and defined

Filename: models/Blogmodel.php

Line Number: 9

Backtrace:

File: /home/content/54/5792554/html/application/models/Blogmodel.php
Line: 9
Function: _error_handler

File: /home/content/54/5792554/html/application/controllers/Index.php
Line: 331
Function: blog_detail

File: /home/content/54/5792554/html/index.php
Line: 294
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Missing argument 2 for Blogmodel::blog_detail(), called in /home/content/54/5792554/html/application/controllers/Index.php on line 331 and defined

Filename: models/Blogmodel.php

Line Number: 9

Backtrace:

File: /home/content/54/5792554/html/application/models/Blogmodel.php
Line: 9
Function: _error_handler

File: /home/content/54/5792554/html/application/controllers/Index.php
Line: 331
Function: blog_detail

File: /home/content/54/5792554/html/index.php
Line: 294
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: page

Filename: models/Blogmodel.php

Line Number: 17

Backtrace:

File: /home/content/54/5792554/html/application/models/Blogmodel.php
Line: 17
Function: _error_handler

File: /home/content/54/5792554/html/application/controllers/Index.php
Line: 331
Function: blog_detail

File: /home/content/54/5792554/html/index.php
Line: 294
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: per_page

Filename: models/Blogmodel.php

Line Number: 17

Backtrace:

File: /home/content/54/5792554/html/application/models/Blogmodel.php
Line: 17
Function: _error_handler

File: /home/content/54/5792554/html/application/controllers/Index.php
Line: 331
Function: blog_detail

File: /home/content/54/5792554/html/index.php
Line: 294
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/content/54/5792554/html/system/core/Exceptions.php:272)

Filename: core/Common.php

Line Number: 568

Backtrace:

File: /home/content/54/5792554/html/application/models/Blogmodel.php
Line: 17
Function: query

File: /home/content/54/5792554/html/application/controllers/Index.php
Line: 331
Function: blog_detail

File: /home/content/54/5792554/html/index.php
Line: 294
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 '' at line 1

SELECT substring_index(post,' ',28) post,post_id,post_title,post_img_url,date_added,post_publish,username FROM admin join posts on admin.id = posts.user_id ORDER BY date_added DESC LIMIT ,

Filename: models/Blogmodel.php

Line Number: 17