<?php
if(trim($_POST['password']) != trim($_POST['repassword'])){
exit ("twice The password used is inconsistent, please return to the previous page");
}
$username = trim($_POST['username'] );
$password = md5(trim($_POST['password']));
$conn = mysqli_connect('localhost ','root','root','informationtest','3306');
if(mysqli_error($conn)){
mysqli_error($conn);
exit;
}
mysqli_select_db($conn,'my_my');
mysqli_set_charset($conn, 'utf8');
insert into informationtest (id,name,password,) value('','$username','$password');
?>