-
-
Save parzibyte/2151361a8b26c4120b4e33e7acac01d3 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 = "videojuegos"; | |
$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; | |
} | |
return $mysqli; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment