Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function insertUser()
- {
- include_once("config/constants.php");
- include_once("includes/class/User.class.php");
- include_once("includes/class/UsersTableUpdate.class.php");
- $users = new UsersTableUpdate();
- if ($_POST['userInsPass']==$_POST['userInsPassRepeat'])
- {
- $users->name = $_POST['userInsName'];
- $users->last_name = $_POST['userInsLastName'];
- $users->phone = $_POST['userInsPhone'];
- $users->address = $_POST['userInsAddress'];
- $users->email = $_POST['userInsEmail'];
- $users->pass = $_POST['userInsPass'];
- $rstUserInsert = $users->insert();
- echo "rstInsert en insertUser: ".var_dump($rstUserInsert)."<br/>";
- //return $rstInsert;
- return $rstUserInsert;
- }
- echo "FALLO EN LA FUNCION";
- };
Add Comment
Please, Sign In to add comment