title: Connect RDS Database with PHP
body: <p>I am new to Amazon Web Services. I am trying to connect the RDS but it is showing Error.</p>
  
  <pre><code>$db_hostname="RDSEndpointwithport";
  $db_username="username";
  $db_password="password";
  $db_name="databasename";
  
  $conn = mysqli_connect($db_hostname, $db_username, $db_password, $db_name);
  
  // Check connection
  if (!$conn) {
      die("Connection failed: " . mysqli_connect_error());
  }
  </code></pre>