<?php
/* Triplify uses a PDO object to connect to the database.
* The following line creates an appropriate PDO object for a MySQL database.
* Please adjust the values for database name, user and password.
* For maximum security, you can create a database user specificially for
* Triplify, which has solely readable access to the columns of your database
* schema, which should be made public. Alternatively, you can include the
* configuration of your Web application and reuse its credentials here.
*/
#$triplify['db']=new PDO('mysql:host=localhost;dbname=db','dbuser','dbpass');
/* Alternatively (e.g. when using PHP4) the db configuration value can point to
* a mysql link resource
*/
#$triplify['db']=mysql_connect('localhost','dbuser','dbpass');
#mysql_select_db('db');
?> |