ConnectBBDD ADODB


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



Copy this code and paste it in your HTML
  1. function connectBBDD($server, $login, $passw, $bbdd)
  2. {
  3. $conn = &ADONewConnection('mysql');
  4. $conn->PConnect($server, $login, $passw, $bbdd);
  5. $conn->debug = false;
  6. $conn->query("SET CHARACTER SET 'utf8'");
  7. return $conn;
  8. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.