-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdbmodel.php
More file actions
64 lines (32 loc) · 1.02 KB
/
dbmodel.php
File metadata and controls
64 lines (32 loc) · 1.02 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
session_start();
ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);
error_reporting(0);
date_default_timezone_set("Asia/Bangkok");
require_once 'function.php';
/* SETTING */
// BANK
//$bank['fullname'] = 'วันชัย เฟื่องเงิน';
//$bank['number'] = '1712961378';
//WALLET
/*
$wallet[1]['fullname'] = 'พลรัตน์ เจนจุลพร';
$wallet[1]['number'] = '0886036076';
$wallet[2]['fullname'] = 'จิระศักดิ์ พันธ์นาม';
$wallet[2]['number'] = '0886982035';*/
//FRIEND
/* DB SETTING */
$DB_Host = 'localhost';
$DB_Username = 'dev01_usr';
$DB_Password = '4i5yH7ZWMO1zY35k';
$DB_Name = 'dev01';
$DB_Charset = 'utf8';
$mysqli = new mysqli($DB_Host, $DB_Username, $DB_Password, $DB_Name);
mysqli_set_charset($mysqli, $DB_Charset);
mysqli_options($mysqli,MYSQLI_INIT_COMMAND,"SET time_zone = 'Asia/Bangkok'" );
if ($mysqli->connect_errno) {
printf("Connect failed: %s\n", $mysqli->connect_error);
exit();
}
?>