Hi, I'm Daphne & this is my 1st post! =)
I need some help here....I'm always receiving a Parse Error when i enter this page.
I can't seem to find any syntax error...help pls
<html>
<head>
<title>Successful Login</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
/// Establish the connection
$dbconnect = @mysql_connect("this", "that", "pooh");
if (!$dbconnect) {
echo ( "Unable to connect to the database server at this time." );
echo ( "Error connecting to the database: " . mysql_error() );
exit();
}
// Select the database to work with
$dbselect = @mysql_select_db("mb", $dbconnect);
if (!$dbselect) {
echo ( "Unable to locate the database at this time." );
echo ( "Error locating the database: " . mysql_error() );
exit();
}
/// Validate client login from database
// Form variables = "login", "password"
$result = mysql_query("SELECT client_username, client_password FROM client_info", $dbconnect);
while ($resultlist = mysql_fetch_array($result)) {
if ($resultlist["client_username"] == $login) {
if ($resultlist["client_password"] == $password)
{
echo ( "blah blah blah" );
echo ( "blah blah blah" );
echo ( "blah blah blah" );
echo ( "blah blah blah" );
} else {
echo ( "Your password is incorrect." );
echo ( "Please try again." );
} else {
echo ( "Your login does not exist." );
echo ( "Please try again." );
}
}
}
?>
</body>
</html>