PDA

View Full Version : Annoying error!



danielneri
04-12-2006, 04:02 PM
Alright i have no clue whats causing this error.

On one of my login scripts, it gives me this error:
[an error occurred while processing this directive]


<?php
session_start();
include("lib/config.php");
if($_POST['submit'])
{
$username = $_POST['username'];
$password = md5($_POST['password']);
$query = mysql_query("SELECT * FROM iCMS_users WHERE username = '$username' AND password = '$password'");
if(mysql_num_rows($query) > 0)
{
session_register("vUserLogged");
$_SESSION['username'] = $username;
header("locatin: index.php");
}else{
header("index.php?msg=$msg;");
}
}else{
header("location: index.php");
}

?>

i tried using output buffering but that didn't work.

so i'm kinda stuck.

the error logs have no information whatsoever.

the config.php script has nothing but db connection details

lazynitwit
04-12-2006, 08:08 PM
Alright i have no clue whats causing this error.

On one of my login scripts, it gives me this error:
[an error occurred while processing this directive]
...
i tried using output buffering but that didn't work.

so i'm kinda stuck.

the error logs have no information whatsoever.

the config.php script has nothing but db connection details
Where you have:

header("index.php?msg=$msg;");

I think you want
header("location: index.php?msg=$msg"); instead ;)