Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getLogin($conn){
- if(isset($_POST['login']))
- {
- $uid=$_POST['uid'];
- $pwd=$_POST['pwd'];
- $sql= "SELECT * FROM user WHERE uid='$uid' AND pwd ='$pwd'";
- $result=$conn->query($sql);
- if (mysqli_num_rows($result) == 1){
- if($row = $result->fetch_assoc()){
- $_SESSION['id'] = $row['id'];
- header("Location : index.php?loginsuccess");
- exit();
- }
- }
- else{
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement