Guest User

Untitled

a guest
Jul 3rd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. function insertUser()
  2. {
  3. include_once("config/constants.php");
  4. include_once("includes/class/User.class.php");
  5. include_once("includes/class/UsersTableUpdate.class.php");
  6.  
  7. $users = new UsersTableUpdate();
  8.  
  9. if ($_POST['userInsPass']==$_POST['userInsPassRepeat'])
  10. {
  11. $users->name = $_POST['userInsName'];
  12. $users->last_name = $_POST['userInsLastName'];
  13. $users->phone = $_POST['userInsPhone'];
  14. $users->address = $_POST['userInsAddress'];
  15. $users->email = $_POST['userInsEmail'];
  16. $users->pass = $_POST['userInsPass'];
  17.  
  18. $rstUserInsert = $users->insert();
  19. echo "rstInsert en insertUser: ".var_dump($rstUserInsert)."<br/>";
  20. //return $rstInsert;
  21. return $rstUserInsert;
  22. }
  23. echo "FALLO EN LA FUNCION";
  24. };
Add Comment
Please, Sign In to add comment