Configurada la conexion a base de datos y empezadas las consultas para extraer informacion

This commit is contained in:
2021-07-09 22:52:53 -03:00
parent bfc3bcf646
commit 5789e56d67
3 changed files with 26 additions and 4 deletions

7
mySQLconnect.php Normal file
View File

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