hello ^^
i used header in my codes, and it was working fine in the local server. but when i upload it to the public server i keep get the following error:
Warning: Cannot modify header information - headers already sent by (output started at /home/movc/public_html/dbconnector.php :23) in /home/movc/public_html/loginaction.php on line 31
in dbconnector.php :
i connect to the server and i never used header there!
and in loginaction.php i used:
[CODE] include_once("d bconnector.php" ); [/DODE]
and this is the part of my code that i used header in:
can you please tell me where i did wrong?
thanks so much ^^
i used header in my codes, and it was working fine in the local server. but when i upload it to the public server i keep get the following error:
Warning: Cannot modify header information - headers already sent by (output started at /home/movc/public_html/dbconnector.php :23) in /home/movc/public_html/loginaction.php on line 31
in dbconnector.php :
i connect to the server and i never used header there!
and in loginaction.php i used:
[CODE] include_once("d bconnector.php" ); [/DODE]
and this is the part of my code that i used header in:
Code:
//Check whether the query was successful or not
if($result) {
header('location: welcome_msg1.php');
exit();}
else
header('location: erorr_msg1.php');
exit();
can you please tell me where i did wrong?
thanks so much ^^
Comment