creating a databased after checking it doesn't exist in PHP – Phpmyadmin
I have this code however, when the database already exists, I get an empty response and echo doesn't show anything: try { //die('here'); $conn = new PDO("mysql:host=$host", $username, $password); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); if (!PDO_select_db($conn, $dbName)){ echo "Database doesn't exist!"; $sql =…