repo.or.cz
/
Assignment-Trapper.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Chat window now opens with no messages inside.
[Assignment-Trapper.git]
/
conn.php
blob
35437abe0494e70aea674077cab94acb17df6910
1
<
?php
2
3
$hostname
=
'localhost'
;
4
$db_user
=
'root'
;
5
$db_pass
=
''
;
6
$db_name
=
'trapper'
;
7
8
$conn
=
mysql_connect
(
$hostname
,
$db_user
,
$db_pass
);
9
if
(!
$conn
) {
die
(
'Could not connect to database.'
); }
10
11
mysql_select_db
(
$db_name
);
12
13
?
>