Advertisement
Guest User

Untitled

a guest
May 1st, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1.        function  registerAcc($user_name,$user_pass,$conn){
  2.  
  3.  
  4.       $query=$conn->prepare("insert into PhysiApp (PhysID, Username, Password, Steps, TotalSteps) values (NULL, Username=:user_name, Password=:user_pass, 0, 0)");
  5.       $query->bindParam(':user_name',$user_name);
  6.       $query->bindParam(':user_pass',$user_pass);
  7.  
  8.       $query->execute();
  9.       $rows=$query->rowCount();
  10.       if($rows == 1){
  11.         return true;
  12.       }else{return false;}
  13.     }
  14.    
  15.  
  16.     function close(){
  17.       $conn=null;
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement