First you need to have a table in your database to store the information
You can use this query. First go to phpmyadmin -> select your database and you have a tab that says SQL, open this tab and paste this query
CREATE TABLE `phonebook` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `phone` varchar(250) DEFAULT NULL,
  `username` varchar(250) DEFAULT NULL,
  `password` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
);
Next you will need to make a connection to your database is your script. As a begginer you can do this like this.
$dbCon = mysqli_connect("localhost","root","password","database");
after the connection you will need a form. Do it this way.
<form action='' method='post'>
    Phone:<input type='text' name='phone'><br>
    Username:<input type='text' name='username'><br>
    Password:<input type='password' name='password'><br>
    <input type='submit' name='submit' value='save'>
</form>
after the form is submited you will need to take the data and insert to the DB
if(isset($_POST['submit'])){
    $phone = mysqli_real_escape_string($dbCon, $_POST['phone']);
    $username = mysqli_real_escape_string($dbCon, $_POST['username']);
    $password = mysqli_real_escape_string($dbCon, $_POST['password']);
    $sqlQuery = "insert into members (phone, username, password) values('$phone','$username','$password')" ;
    $result  =  mysqli_query($sqlQuery);
    if(!$result){
        echo mysqli_error();
    }
}
You have many many examples online just read them :)