Skip to content

Instantly share code, notes, and snippets.

@zerobugs-oficial
Last active June 19, 2020 14:53
Show Gist options
  • Save zerobugs-oficial/87c9c903c4a4704a86e15c75dbd64790 to your computer and use it in GitHub Desktop.
Save zerobugs-oficial/87c9c903c4a4704a86e15c75dbd64790 to your computer and use it in GitHub Desktop.
Upload de Arquivos e Imagens usando PHP e MySQL - 1
<?php
$host = "localhost";
$usuario = "USUARIO";
$senha = "SENHA";
$bd = "BANCODEDADOS";
$mysqli = new mysqli($host, $usuario, $senha, $bd);
if($mysqli->connect_errno)
echo "Falha na conexão: (".$mysqli->connect_errno.") ".$mysqli->connect_error;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment