Hace poco subí mi web a un hosting (hostpapa). Iba muy ilusionado a verla por primera vez en google cuando en la parte derecha (log-in) inserto mis datos y da unos errores
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/bizar612/public_html/log-in/alta2.php:9) in /home/bizar612/public_html/log-in/alta2.php on line 13
Warning: Cannot modify header information - headers already sent by (output started at /home/bizar612/public_html/log-in/alta2.php:9) in /home/bizar612/public_html/log-in/alta2.php on line 47
Y aquí les dejo el archivo:
Código PHP:
<?php
include("../conexiones/bizarrejuegos.php");
include("../funciones.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../styles/noticias/<?php echo estilo(); ?>" rel="stylesheet" type="text/css" />
</head>
<body>
<?php
session_start();
if(isset($_POST['admin']) && isset($_POST['clave']))
{
if($_POST['clave']=='*****') {
$sql="SELECT *
FROM usuariosbj
WHERE email='".$_POST['admin']."'";
$res=mysql_query($sql,$conexion) or die(mysql_error()."<br />".$sql."<hr />");
if(mysql_fetch_assoc($res)==false) {
echo "El usuario y/o la contraseña no son correctos<br />";
}
else {
$_SESSION['email']=$_POST['admin'];
$_SESSION['clave_sec']=$_POST['clave'];
header("Location: ../noticias.php");
}
}
else {
$sql="SELECT *
FROM usuariosbj
WHERE nombre='".$_POST['admin']."'AND clave='".$_POST['clave']."'";
$res=mysql_query($sql,$conexion) or die(mysql_error()."<br />".$sql."<hr />");
//si el nombre y/o la contrase単a no son correctos
if(mysql_fetch_assoc($res)==false)
echo "El usuario y/o la contraseña no son correctos<br />";
//si el nombre y/o la contrase単a si son correctos
else {
$_SESSION['recordar']=$_POST['recordar'];
$_SESSION['nombre']=$_POST['admin'];
$_SESSION['clave']=$_POST['clave'];
header("Location: ../noticias.php");
}
}
}
?>
</body>
</html>