Something is weird with either your keyboard settings, your text editor, or something. Your outputted quotes and apostrophes are not the standards for PHP.. In other words.. use this code instead:
PHP Code:
//Connect to database
<?php
session_start();
$username = $_POST['username'];
$password = md5($_POST['password']);
$query = "select * from users where username='$username' and password='$password'";
$result = mysql_query($query);
if (mysql_num_rows($result) != 1) {
$error = "Bad Login";
include "login.html";
} else {
$_SESSION['username'] = "$username";
include "memberspage.php";
}
?>
You'll notice I turned all of the peculiar quotes and apostrophes to match the standards. Try to use this practice or count your programming life short.