I keep getting this error


ERROR 200

ok


This is my script

<?php 

$dbhost = '24.59.30.170';
$dbusername = 'ethan';
$dbpasswd = '****';
$database_name = 'site';

$connection = mysql_pconnect("$dbhost","$dbusername","$dbpasswd")
	or die ("Couldn't connect to server.");


$db = mysql_select_db("$database_name", $connection)
	or die("Couldn't select database.");

$username = $_POST['username'];
$password = $_POST['password'];

if((!$username) || (!$password)){
	echo "Please enter ALL of the information! <br />";
	include 'login_form.html';
	exit();

$password = md5($password);

$sql = mysql_query("SELECT * FROM users WHERE username='$username' AND password='$password'");
$login_check = mysql_num_rows($sql);

}

	session_register('first_name');
	$_SESSION['first_name'] = $first_name;
	session_register('last_name');
	$_SESSION['last_name'] = $last_name;
	session_register('email_address');
	$_SESSION['email_address'] = $email_address;

	header("Location: success.php");
}

} else {
echo "Login Incorrect. Please Try agin<br />";
include 'login.html';
}

?>
</body>
</html>

    Don't double/cross post, get rid of the other one if noone has yet responded.

    and your "Error 200" means a File I/O error

    are you getting this when you are running it through a browser or do you happen to be using PHPEdit

      It happens when i run it threw the browser i am just editing it with dreamweaver as a text editor.

      So how can i fix it?

        I am sorry but i am still having trouble trying to figure it out the error comes up. I just want something to help it.

        all the script is a usercheck script.

          Write a Reply...