Posted By

LondonWeb on 08/20/08


Tagged

mysql php conn


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

vali29


MySQL Connection


 / Published in: PHP
 

  1. <?
  2.  
  3. //arquivo de configuraĆ§Ć£o do sistema...
  4. $endereco_host = 'localhost';
  5. $usuario_host = 'usuario';
  6. $senha_host = 'senha13';
  7. $banco_de_dados = 'meu_banco';
  8.  
  9.  
  10. // Conexao
  11. $conectar = mysql_connect($endereco_host, $usuario_host, $senha_host) or die ("NAO FOI POSSIVEL CONECTAR A BASE DE DADOS");
  12. $banco = mysql_select_db($banco_de_dados);
  13.  
  14. ?>

Report this snippet  

You need to login to post a comment.