Connexion Php à un serveur MySQL


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.