Error in this line and also remove space in password
$datbase=mysqli_connect("localhost:82","root"," ");
You are not connecting to MySQL, but to Apache server. If you didn't change MySQL port just use
$datbase=mysqli_connect("localhost","root","","databaseName");