repo.or.cz
/
travianx.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[r3] Deleted config.php packed by error.
[travianx.git]
/
testmysql.php
blob
fdb5dd887e2236b7a5676616750d04f330fcfccd
1
<
?php
2
$link
=
mysql_connect
(
'hostname'
,
'dbuser'
,
'dbpassword'
);
3
if
(!
$link
) {
4
die
(
'Could not connect to MySQL: '
.
mysql_error
());
5
}
6
echo
'Connection OK'
;
mysql_close
(
$link
);
7
?
>