<?php 

$dbname = 'AKASH';
$dbuser = 'AKASH';
$dbpass = 'Fortnite';
$dbhost = 'aws-mysql-db-test.cdkmluat77zd.us-west-1.rds.amazonaws.com';

$connect = mysqli_connect($dbhost, $dbuser, $dbpass) or die("Unable to Conne ct to '$dbhost'");
mysqli_select_db($connect, $dbname) or die("Could not open the db '$dbname'");

$test_query = "SHOW TABLES FROM $dbname";
$result = mysqli_query($connect, $test_query);

$tblCnt = 0;
while($tbl = mysqli_fetch_array($result)) {
  $tblCnt++;
  #echo $tbl[0]."<br />\n";
}

if (!$tblCnt) {
  echo "There are no tables<br />\n";
} else {
  echo "There are $tblCnt tables<br />\n";
}

$test_query2 = "SELECT * FROM user";
$result2 = mysqli_query($connect, $test_query2);
$row = mysqli_fetch_array($result2);
echo $row;
print_r($row);
?>
<p>Please hit the back arrow to go back</p>