Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once("../database.php");
- $db = new database;
- class login{
- public $username;
- public $password;
- function check_login(){
- $query = mysqli_query($db -> db_connect, "SELECT * FROM login WHERE username='" . $this -> username . "' AND password='" . $this -> password . "'");
- if($query){
- return 1;
- }else{
- return 0;
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement