-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdb.class.php
More file actions
executable file
·24 lines (17 loc) · 897 Bytes
/
Copy pathdb.class.php
File metadata and controls
executable file
·24 lines (17 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
try {
/*************************************************************
/******************** SQL SERVER *****************************
/************************************************************/
//$conn = new PDO("sqlsrv:server=127.0.0.1;Database=MassMail", "sa", "01Cshop47");
//$conn->setAttribute(PDO::SQLSRV_ATTR_ENCODING, PDO::SQLSRV_ENCODING_SYSTEM);
/*************************************************************
/******************** MYSQL **********************************
/************************************************************/
$conn = new PDO("mysql:host=127.0.0.1;dbname=massmail","massmail","euWQrBdqvXLyNFD2");
$conn->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
}
catch(Exception $e) {
die( print_r( $e->getMessage() ) );
}
?>