Register
';
$sql = "SELECT * FROM `members` ORDER BY `id`";
$result = mysql_query ( $sql ) or die ( mysql_error() );
while ( $row = mysql_fetch_assoc ( $result ) )
{
$username = stripslashes ( $row['username'] );
$email = stripslashes ( $row['email'] );
echo $username . ' ';
echo $email;
echo '
';
}
break;
case 'register':
if ( !isset ( $_POST['register'] ) )
{
?>
here to return to the home page!';
}
else
{
echo 'SQL ERROR: Unable to write to mySQL table.';
}
}
else {
echo 'Your passwords do not match, click here to try again.';
}
}
break;
case 'login':
if ( !isset ( $_POST['login'] ) )
{
?>
here to return to the home page!
';
}
}
}
if ( $usr !== 1 )
{
echo 'Incorrect Username. Click here to try again.';
}
else if ( $pw !== 1 )
{
echo 'Incorrect Password. Click here to try again.';
}
}
break;
}
?>