hi all,
I have this strange error: when I need to use the database on a page I
include connectionDB.ph p with inculde_once("c onnectionDB.php ");
The connectionDB.ph p looks like this:
<?
$db = mysql_connect(" localhost", "xxxxxx, "xxxxxx");
mysql_select_db ("xxxxx",$db );
?>
when I use the header("Locatio n: goto.php"); function after the
connectionDB.ph p code is included I get
Warning: Cannot modify header information - headers already sent by (output
started at C:\Inetpub\webp ub\S11Mate\html 01\connectionDB .php:4) in
C:\Inetpub\webp ub\S11Mate\html 01\login.php on line 60
This means that connectionDB.ph p is sending to the browser? Being more
specific, line number 4, ?> . Someone knowswhats going wrong.
kind regards
Stijn
I have this strange error: when I need to use the database on a page I
include connectionDB.ph p with inculde_once("c onnectionDB.php ");
The connectionDB.ph p looks like this:
<?
$db = mysql_connect(" localhost", "xxxxxx, "xxxxxx");
mysql_select_db ("xxxxx",$db );
?>
when I use the header("Locatio n: goto.php"); function after the
connectionDB.ph p code is included I get
Warning: Cannot modify header information - headers already sent by (output
started at C:\Inetpub\webp ub\S11Mate\html 01\connectionDB .php:4) in
C:\Inetpub\webp ub\S11Mate\html 01\login.php on line 60
This means that connectionDB.ph p is sending to the browser? Being more
specific, line number 4, ?> . Someone knowswhats going wrong.
kind regards
Stijn
Comment