-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDB.php
45 lines (39 loc) · 1.02 KB
/
DB.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of DB
*
* @author mostafil
*/
/* production base
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'serwer_wiosny_06');
define('DB_PASSWORD', 'Xn4F9YlG5dt9');
define('DB_DATABASE', 'serwer_wiosny_06');
*
*/
/*
define('DB_SERVER', 'localhost');
define('DB_USERNAME', '04827858_limedev');
define('DB_PASSWORD', 'a&F6@EE,b%cB');
define('DB_DATABASE', '04827858_limedev');
*/
/*
class DB {
function __construct()
{
/*
$connection = mysql_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD) or
die('Oops connection error -> ' . mysql_error());
mysql_select_db(DB_DATABASE, $connection)
or die('Database error -> ' . mysql_error());
*/
/*
$connection = @new mysqli(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_DATABASE) or die('mysqli_connect_error()');
}
}
*/