Guest User

Untitled

a guest
Feb 27th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. global $wpdb;
  2. $table_name ='users';
  3. $sql="select * from $table_name where username='".$username."' and password='".$password."'";
  4. $user=$wpdb->get_results($sql);
  5.  
  6. if(!empty($user)){
  7.  
  8. echo 'success';
  9.  
  10.  
  11. }
  12.  
  13. else{
  14. echo 'faliure';
  15. }
Add Comment
Please, Sign In to add comment