-
Notifications
You must be signed in to change notification settings - Fork 9
/
connectdb.php
43 lines (43 loc) · 1.83 KB
/
connectdb.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
43
<?php
# ThaiRIS (Thai Radiology Information System)
# Version: 1.0
# File last modified: 18 AUG 2013
# File name: connectdb.php
# http://www.thairis.net
# By ThaiRIS.Net
# Email : [email protected]
##############################################################################
# COPYRIGHT NOTICE
# Copyright 2009-2017 ThaiRIS All Rights Reserved.
#
# This script may be used and modified free of charge by anyone so long as
# this copyright notice and the comments above remain intact. By using this
# code you agree to indemnify ThaiRIS.net from any liability that might
# arise from it's use.
#
# You can use and modify if you need but can't sale
#
# This Copyright is in full effect in any country that has International
##############################################################################
$host ="localhost";
$user ="root";
$password ="";
$dbname ="ris";
error_reporting(E_ERROR);
$dbconnect = mysql_connect($host,$user,$password);
if (!$dbconnect)
{
echo "Can't connet to Server Please contect Admin";
exit;
}
MYSQL_SELECT_DB($dbname) OR DIE("Error".mysql_error());
mysql_query("SET NAMES UTF8");
mysql_query("SET character_set_results=utf8");
mysql_query("SET character_set_client=utf8");
mysql_query("SET character_set_connection=utf8");
mysql_query("collation_connection =utf8");
mysql_query("collation_database =utf8");
mysql_query("collation_server =utf8");
date_default_timezone_set('Asia/Bangkok');
include ("config.php");
?>