0

Hi Every Body I have been working on a project Where user has to login and edit contents of his web
The thing happening is every page is working fine and there is no error except only in one page & which is freaking me out.....when i hit submit button following error displays....

**Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/iconspor/public_html/webadmin/submit_edit_scat.php:1) in /home/iconspor/public_html/webadmin/session.php on line 2

**Warning: Cannot modify header information - headers already sent by (output started at /home/iconspor/public_html/webadmin/submit_edit_scat.php:1) in /home/iconspor/public_html/webadmin/submit_edit_scat.php on line 6
****

Here is the session.php

<?php 
session_start();
session_cache_limiter('none');
if
($_SESSION[ "myusername" ] == "" ){

header("location:index.php");
}
?>

AND
The submit_edit_scat.php file here...

<?php 
include "connection.php";
include  "session.php";
$fid=$_REQUEST["fid"]; 
$sql=mysql_query("UPDATE scat set scat='".$_REQUEST["scat"]."' WHERE sid=".$_REQUEST["sid"]." and fid=".$_REQUEST["fid"]."");
header("location:add_second_cat.php?fid=".$fid."");
?>
3
Contributors
3
Replies
10
Views
5 Years
Discussion Span
Last Post by mir.jde
1

and if nothing works try this:

1st line of your page, even html
<? ob_start();//Start buffer output ?>

and the last line of your page
<? ob_flush();//Flush buffer output ?>

and i've pick that trick in one of the DaniWeb thread which i dont remember when and where. Try to do search.

Really help me out.

0

I dont know how...
But I wrote the code again & Use

ob_start();

extra in it...
& it work... Thx God....

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.