Código :
Warning: Cannot modify header information - headers already sent by (output started at c:\wamp\www\skinsdiary\Conf\conf.php:25) in c:\wamp\www\skinsdiary\login.php on line 7
Creo q el problema esta en q hago un "include" y luego utilizo "header()" para redireccionar. Este es mi codigo:
Código :
<?php
include('Conf/conf.php');
$sql = mysql_query("SELECT * FROM `writer` WHERE `user` = '$_POST[user]' AND `passwd` = '$_POST[passwd]'");
if(mysql_num_rows($sql) != 0){
session_start();
$_SESSION['id'] = $_POST[user];
header('location: tuinfo.php');
exit();
}else{
header('location: index.php?error=true');
}
?>
probe conectando directo a la DB desde este script y me funciono, pero el problema es q necesito importar si o si 'Conf/conf.php', xq ahi ta la configuracion del servidor pa q luego pueda ser modificada por cualquiera, cual es mi error?? como puedo hacer??
Un saludo!
