Posted By

sebus on 10/13/08


Tagged

mysql php


Versions (?)

Connexion Php à un serveur MySQL


 / Published in: PHP
 

  1. define ("SERVEUR", "localhost");
  2. define ("IDENTIFIANT_DB", "xxx");
  3. define ("PASS_DB", "xxx");
  4. define ("BASE", "xxx");
  5. $connexion = @mysql_connect(SERVEUR, IDENTIFIANT_DB, PASS_DB);
  6. if (!$connexion){
  7. print 'Erreur de connexion au serveur MySQL !';
  8. }else{
  9. }

Report this snippet  

You need to login to post a comment.