Hi, thanx for your time and your help.
I´m trying to do and authentication User area with mySql.
I have everything done, but I get this error message:
Warning: Cannot add header information - headers already sent by (output started at c:\apache\htdocs\mysite\conn.php:1) in c:\apache\htdocs\mysite\validate.php on line 25
And this is part of the code of validate.php :
<?
include("conn.php");
$ssql = "SELECT * FROM mydb WHERE User='$User' and PWD='$PWD'";
$rs = mysql_query($ssql);
if (mysql_num_rows($rs)!=0){
session_start();
session_register("autent");
$autent = "yes";
header ("Location: user.php");
}else {
header("Location: login.php?erroruser=yes");
}
is it because maybe exists a conflict between the include conn.php and the header?
Any help will be appreciated