Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $uname = $_POST['username'];
- $mail = $_POST['mail'];
- //MySQLi Query
- $con = mysqli_connect("localhost","root","","mscit");
- if(!$con)
- {
- die("Error :".mysqli_error());
- }
- else
- {
- //none
- }
- //delete from login where username=7842;
- $dbq = "update login set email='$mail' where username='$uname'";
- mysqli_query($con, $dbq);
- echo "<p align='center'> Record Updated.";
- //echo "Record Updated : ".mysql_affected_rows($con);
- ?>
Add Comment
Please, Sign In to add comment