Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. <?php
  2. $bd_host = "localhost";
  3. $bd_user = "simulado_bd"; // Usuário do Banco de Dados
  4. $bd_pass = "********"; // Senha do Bando de Dados
  5. $bd_bd = "simulado_bd"; // Nome do Banco de Dados
  6. $conectar = mysql_connect($bd_host, $bd_user, $bd_pass) or die (mysql_error());
  7. mysql_select_db($bd_bd, $conectar);
  8. mysql_query('SET CHARACTER SET utf8');
  9.  
  10. mysql_query("SET NAMES 'utf8'");
  11. mysql_query('SET character_set_connection=utf8');
  12. mysql_query('SET character_set_client=utf8');
  13. mysql_query('SET character_set_results=utf8');
  14.  
  15. header('Content-Type: text/html; charset=utf-8');<meta charset="utf-8" />
  16.  
  17. <meta charset="utf-8" />
  18.  
  19. *header('Content-Type: text/html; charset=utf-8');*
  20.  
  21. *header('Content-type: text/html; charset=iso-8859-1');*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement