index.php
<?php
$servername='localhost';
$data='mytest';
$username = "root";
$password = "";
$connection = new PDO("mysql:host=localhost;dbname=mytest;charset=utf8",$username,$password);
$connection->exec("INSERT INTO users (name,age,login,password) VALUE ('name','41','login','321')");