Skip to content

Instantly share code, notes, and snippets.

View pocapratica's full-sized avatar

Ederson pocapratica

  • Vacaria, RS, Brasil
View GitHub Profile
@pocapratica
pocapratica / busca_cidade.php
Last active July 17, 2024 21:54
Autocomplete jQuery-UI Cidades e Estados do Brasil com Ajax e SQL
<?php
$hostname = 'SEU_HOST';
$username = 'SEU_USUARIO';
$password = 'SUA_SENHA';
$dbname = 'SEU_DB';
$con = mysqli_connect( $hostname, $username, $password ) or die ( 'Erro ao tentar conectar ao banco de dados.' );
mysqli_select_db($con, $dbname);