/lenasys/0.1

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/0.1

« back to all changes in this revision

Viewing changes to trunk/DuggaSys/quizSystem/dbconnect.php

  • Committer: a11vikob
  • Date: 2013-03-28 15:33:33 UTC
  • mto: (4.2.2 hitlerhorabajs)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: a11vikob@student.his.se-20130328153333-2jf1mut7h63n28ra
Indentation etc fixed

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
        //DB connection
 
3
        $pdo = new PDO('mysql:dbname=dsystem;host=wwwlab.iki.his.se', 'dbsk', 'Tomten2009');
 
4
        //Set PDO to display errors
 
5
        $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);//, PDO::MYSQL_ATTR_USE_BUFFERED_QUERY );
 
6
        $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
 
7
?>
 
 
b'\\ No newline at end of file'