repo.or.cz
/
sandbox.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Create new standard layout using 960 Grid System
[sandbox.git]
/
test_mysql.php
blob
37379c6f8bdf8d3f726a8fe472bb1d6108ded9bd
1
<
?php
2
header
(
'Content-Type: text/html; charset=UTF-8'
);
3
4
$host
=
'localhost'
;
5
$dbadmin
=
'root'
;
6
$dbpasswd
=
'sysadmin'
;
7
8
$ok
=
mysql_connect
(
$dbname
,
$dbadmin
,
$dbpasswd
)
or die
(
'Connected failure.'
.
'<br />'
.
mysql_error
());
9
if
(
$ok
)
echo
'Has successfully connected.'
;
10
?
>