I using session when creaate a forum. But it display error like:
Warning: session_start() : Cannot send session cookie - headers already sent by (output started at C:\Apache2\Apac he2\htdocs\foru mReply_act.php: 9) in C:\Apache2\Apac he2\htdocs\foru mReply_act.php on line 11
Warning: session_start() : Cannot send session cache limiter - headers already sent (output started at C:\Apache2\Apac he2\htdocs\foru mReply_act.php: 9) in C:\Apache2\Apac he2\htdocs\foru mReply_act.php on line 11
Your reply has being posted!
Other than that it can function well, what is the problem?? Thanks..
The code something like below:
[PHP]
<?php
ob_start();
session_start() ;
//create and issue the first query
$add_topic = "insert into forumtopic values ('', '$_POST[title]', '$_SESSION[username]', now(), '$_POST[comment]')";
mysql_query($ad d_topic,$conn) or die(mysql_error ());
?>[/PHP]
Warning: session_start() : Cannot send session cookie - headers already sent by (output started at C:\Apache2\Apac he2\htdocs\foru mReply_act.php: 9) in C:\Apache2\Apac he2\htdocs\foru mReply_act.php on line 11
Warning: session_start() : Cannot send session cache limiter - headers already sent (output started at C:\Apache2\Apac he2\htdocs\foru mReply_act.php: 9) in C:\Apache2\Apac he2\htdocs\foru mReply_act.php on line 11
Your reply has being posted!
Other than that it can function well, what is the problem?? Thanks..
The code something like below:
[PHP]
<?php
ob_start();
session_start() ;
//create and issue the first query
$add_topic = "insert into forumtopic values ('', '$_POST[title]', '$_SESSION[username]', now(), '$_POST[comment]')";
mysql_query($ad d_topic,$conn) or die(mysql_error ());
?>[/PHP]
Comment