. */ require_once("db_class.php"); #------ Database connection details -------------------------------------------# // Replace the variables with your MySQL connection info. $dbhost = "localhost"; // Most likely 'localhost', so you don't need to change this in most of cases $dbuser = "postgres"; // Your username $dbpass = "x"; // Your password $dbname = "cp"; // Your database name $dbport = "5432"; #------ Create an instance of Sql class ---------------------------------------# // Connect $sql = new Sql($dbhost, $dbuser, $dbpass, $dbname, $dbport); ?>