Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- session_start(); //open the session for session variables
- include 'processerrors.php';
- logstats();
- set_error_handler("logmyerror");
- $host = "localhost"; //the host address to connect to
- $user = "root"; //the database user that we connect using
- $pass = "09k6CcsGxBq7p"; //the database user's password
- $db = "LogIn"; //the database to access
- //use the variables declared above to connect to the database
- $connection = mysql_connect($host, $user, $pass) or die ("Unable to connect!");
- //select the specific database to read from
- mysql_select_db($db) or die ("Unable to connect to database...");
- // The query
- // Find the location in the table of the entered username
- $query = "UPDATE `users` SET `password`='".$_POST["txtPassword"]."' WHERE `Username`='".$_POST["txtUsername"]."'";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement