Guest User

Untitled

a guest
Jan 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. //get merchant data with its id
  2.  
  3. public function getUserData($id){
  4.  
  5. $stmt = $this->conn->prepare("SELECT * FROM seller WHERE id= ? LIMIT 1");
  6. $stmt->bind_param("i", $ud);
  7. $stmt->execute();
  8. $result = $stmt->get_result();
  9.  
  10. if($result){
  11. $seller = $result->fetch_assoc();
  12. $stmt->close();
  13. return $seller;
  14. }
  15. else{
  16. return NULL;
  17. }
  18. }
Add Comment
Please, Sign In to add comment