Posted By

otternq on 03/09/12


Tagged

PHPdatabasePDOmysql


Versions (?)

PHP - PDO


 / Published in: PHP
 

  1. $dsn = "mysql:dbname=<databaseName>;host=127.0.0.1";
  2. $dbh = new PDO(
  3. $dsn,
  4. "",//database username
  5. "" //database password
  6. );

Report this snippet  

You need to login to post a comment.