A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: models/Main_m.php

Line Number: 85

Backtrace:

File: /homepages/25/d747912294/htdocs/application/models/Main_m.php
Line: 85
Function: _error_handler

File: /homepages/25/d747912294/htdocs/application/controllers/Home.php
Line: 70
Function: post

File: /homepages/25/d747912294/htdocs/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 /homepages/25/d747912294/htdocs/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /homepages/25/d747912294/htdocs/application/models/Main_m.php
Line: 109
Function: insert

File: /homepages/25/d747912294/htdocs/application/controllers/Home.php
Line: 71
Function: view

File: /homepages/25/d747912294/htdocs/index.php
Line: 315
Function: require_once

Database Error

A Database Error Occurred

Error Number: 23000/1452

Cannot add or update a child row: a foreign key constraint fails (`db749115260`.`views`, CONSTRAINT `views_ibfk_1` FOREIGN KEY (`blog_id`) REFERENCES `blog` (`id`))

INSERT INTO `views` (`blog_id`, `count`) VALUES (6, 1)

Filename: models/Main_m.php

Line Number: 109