im header already sent problem

#1
[eluser]sasori[/eluser]
is there a way to get rid of this error ?
Code:
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\myapp\system\application\models\stock_model.php:2)

Filename: codeigniter/Common.php

Line Number: 360

#2
[eluser]n0xie[/eluser]
You output something in your stock_model. Remove it and the error goes away.

#3
[eluser]hendrawan[/eluser]
i think that is becouse you already have
Code:
echo
on your code
header doesnt allow another output such as
Code:
echo, print, etc
in it's script


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.