Check the manual... if that script is included check that the file that it is actually including it doesn't have any print or echo. session_start() should be at the very beginning of the code.
Also change this:
[php]
<?session_start();?>
<?php
include"db_config.php";
[/php]
to this
[php]
<?php
session_start();
include"db_config.php";
[/php]
There is no need to break the PHP tags there... and use <?php also instead of <? it will make the script work in other servers. Or maybe your server doesn;t support short php tags.
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
Offline 57 posts
since Mar 2005