Código PHP:
$query = "SELECT * FROM usersdd WHERE Email = '$email' AND Password =MD5('$password')";
$result = mysql_query($query, $db);
$name = mysql_result($result,0,"Nombre");
//$name = mysql_result($result,0,"Nombre");
if(mysql_num_rows($result) !=0 ) {
$_SESSION['loggedin'] = 1;
$_SESSION['user'] = $name;
header('Location: http://miweb.com/diariodigital/ddigital/');
exit();
else // If login is unsuccessful forwards the user back to the index page with an error
{
header('Location: http://miweb.com/diariodigital/ddigital/login/index.php?error=1');
exit();
}
Warning: mysql_result(): Unable to jump to row 0 on MySQL result.......
Warning: Cannot modify header information - headers already sent by
que es lo que estoy haciendo mal, espero que alguien pueda ayudarme
saludos