psteja2000
Programmer
I am given an task to convert coldfusion application to php.
I get this error always don't know y..
I include a file 'sqldbcon.php' which has just two lines of php code, to connect to database.
<?php
$con=mysql_connect("","username","");
$DB=mysql_select_db("dbname",$con);
?>
I include this in another file A.php
somewhere in A.php I say, header("location: blah blah")
It failes to redirect saying header information already sent in sqldbcon.php
???????
can anyone please help?
regards,
Teja
I get this error always don't know y..
I include a file 'sqldbcon.php' which has just two lines of php code, to connect to database.
<?php
$con=mysql_connect("","username","");
$DB=mysql_select_db("dbname",$con);
?>
I include this in another file A.php
somewhere in A.php I say, header("location: blah blah")
It failes to redirect saying header information already sent in sqldbcon.php
???????
can anyone please help?
regards,
Teja