Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created Oct 5, 2020
Embed
What would you like to do?
<?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