-
-
Save parzibyte/921c94f72b59539e1a5ca4aeef5b7adc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$host = "localhost"; | |
$usuario = "root"; | |
$contrasenia = ""; | |
$base_de_datos = "escuela"; | |
$mysqli = new mysqli($host, $usuario, $contrasenia, $base_de_datos); | |
if ($mysqli->connect_errno) { | |
echo "Falló la conexión a MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment