DATABASE PHP PDO MYSQL connection
HTML-код
- Опубликовано: 23 дек 2024
- DATABASE PHP PDO MYSQL connection
This is the code that you should put between tags PHP, you also need to change user name, password, dbname if this information are diferente from mine
//this means a comment in PHP
//username
$user='root';
//password
$pass='';
//hostname=localhost
//dbname=curse
$conn = new PDO('mysql:host=localhost;dbname=curse', $user, $pass);