Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- // Establish a connection to the database
- $con = mysqli_connect("localhost", "cairil_php", "phpsql");
- // Check if there were any issues connecting to the database
- if ( mysqli_connect_errno() != 0)
- {
- die("An error occurred trying to establish a connection: " .mysqli_connect_error());
- }
- $locked = mysql_query("UPDATE customer SET `locked_flag`=1 WHERE 'cust_user'="$_SESSION['user']"");
- // Run the query using the connection established earlier and assign the results to a results object.
- $rs = mysqli_query ($con, $locked);
- if ( !$rs)
- {
- $result = "There Was an Error Changing the Record".mysqli_error();
- }
- else
- {
- $result = "Your lack of password disappoints me. Your account is locked";
- }
- <html>
- <head>
- <title> 2214_LoginAction.php</title>
- </head>
- <body bgcolor="#bbccaa">
- <br/><br/><br/>
- <center>
- <h3><?php echo($result); ?></h3>
- <br/>
- <a href="2214_login.php">Back to the Login Page</a>
- </center>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement