Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Nov 19th, 2018 110 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. session_start();
  2.                 if($_SERVER["REQUEST_METHOD"] == "POST")
  3.                 {
  4.                  
  5.                   $username = mysqli_real_escape_string($link,$_POST['email']);
  6.                   $password = mysqli_real_escape_string($link,$_POST['pwd']);
  7.                   $id=mysqli_query($link, "SELECT id_client FROM client,`login`
  8.                   WHERE  client.email='$email' AND client.id_client=`login.id_client` AND `login.password`=$password;");
  9.                   echo $id;
  10.                   $row = mysqli_fetch_array($id,MYSQLI_ASSOC);
  11.                   $active = $row['active'];
  12.                   $count = mysqli_num_rows($id);
  13.                   if($count == 1) {
  14.                     echo udalosie;
  15.                     session_register("username");
  16.                     $_SESSION['login_user'] = $myusername;
  17.                    
  18.                     header("location: welcome.php");
  19.                  }else {
  20.                    echo nie;
  21.                     $error = "Bledny login lub haslo";
  22.                  }
  23.                 }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top