Answers for "heroku mysql"

PHP
0

heroku mysql

<?php
$url = parse_url(getenv("CLEARDB_DATABASE_URL"));

$server = $url["host"];
$username = $url["user"];
$password = $url["pass"];
$db = substr($url["path"], 1);

$conn = new mysqli($server, $username, $password, $db);
?>
Posted by: Guest on December-28-2020

Browse Popular Code Answers by Language