I created an SQL database.
DB_name: id1360365_stuff
DB_user: id1360365_stuff
DB_host: localhost
PW: stuff
I found a tutorial on how to connect to a SQL database using PDO:
https://www.bitdegree.org/learn/mysql-create-database
"; } catch(PDOException $e) { echo $sql . "
" . $e->getMessage(); } $conn = null; ?>
There are four variables I need to get right:
$servername = “localhost”;
$username = “username”;
$password = “password”;
dbname= MyDB
I assume these need to be adjusted: so I did:
$servername = “localhost”;
$username = “id1360365_stuff”;
$password = “stuff”;
dbname= id1360365_stuff
This doesn’t run even inside basic html/body tags.
I have tried what seems to be every possible permutation of the above information, even swapping out 000webhost passwords. Please help!
Do I have CREATE privileges by default?