Files
Allnews.com/mySQLconnect.php
2021-07-13 20:57:55 -03:00

7 lines
173 B
PHP
Executable File

<?php
try {
$mySQLconnect = new PDO('mysql:host=localhost;dbname=pagina_de_noticias', 'root', '');
} catch(PDOexception $e) {
echo "Error: " . $e -> getMessage();
}