Welcome to WEBDEVEL Blog...
We will tell you what the PHP file will have to connnect to phpMyAdmin.
<?php
$servername = 'localhost';
$username = '(Your username)';
$password = '(Your password)';
$database = '(your database name you want to connect)';
$conn = mysqli_connect($servername, $username, $password, $database);
if ($conn) {
echo 'Error! '. mysqli_error($conn);
}
?>