mirror of
https://github.com/FranP-code/Allnews.com.git
synced 2025-10-13 00:32:45 +00:00
Configurada la conexion a base de datos y empezadas las consultas para extraer informacion
This commit is contained in:
7
mySQLconnect.php
Normal file
7
mySQLconnect.php
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user