I have to deploy a WebPage for illustrating sessions in PHP, but my app is not interacting with PostgreSQL Instance.
You can see here that the login and signup are not working.
Script
<?php
/* Attempt to connect to MySQL database */
$user = 'admin';
$password = 'adminpassword';
$hostname = 'hostname';
$port = 50000;
$database = 'ibmclouddb';
$conn = pg_connect("host=$hostname port=$port dbname=$database user=$user password=$password sslmode=verify-full sslcert=../6be25d73-0600-11ea-9bce-eaebe975ceba");
// Check connection
if ($conn === false) {
die("ERROR: Could not connect. " );
echo "Con't Connect";
}
?>
What could be the cause of this?