I know there was a some questions related to this, but there are in c++ or other languages. I get this error and I\'m not sure what is wrong with my function.
My er
Your method needs 5 arguments, you only pass 2: User->register('ds', 'dsssssss')
User->register('ds', 'dsssssss')
Edit this line in Register.php:
Register.php
$user->register($username, $password)
to
$user->register($name, $surname, $username, $password, $email)
Additionally you have this line twice $stmt->bindParam(":password", $password);
$stmt->bindParam(":password", $password);