AM I DOING THE HASH THING RIGHT? BECAUSE THIS ISN'T WORKING!
Code:<?php if ( isset($_POST['username']))
{
include 'Login.php';
sessionstart();
$username = mysql_real_escape_string($_POST['username']);
$password = mysql_real_escape_string($_POST['password']);
$password = phpbb_hash($password);
$result = mysql_query("SELECT * FROM php_users WHERE username ='".$username. "'
AND user_password ='".$password. "' LIMIT 1");
$count=mysql_num_rows($result);
if($count==1)
{
echo "You have sucessfully logged in {$username} ";
echo '<br />';
header( 'Location: http://www.cytonia.com/index.php' ) ;
}
else
{
echo "Invalid username or password!";
}
}
?>