Skip to content

Commit cab6710

Browse files
committed
Update index.php
1 parent 2c074a9 commit cab6710

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

html/index.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,19 @@
22

33
phpinfo();
44

5+
/*
6+
$link = mysqli_connect( 'database', '${DB_USER}', '${DB_PASSWORD}', '${DB_NAME}' );
7+
8+
//if connection is not successful you will see text error
9+
if ( !$link ) {
10+
die( 'Could not connect: ' . mysql_error() );
11+
}
12+
13+
//if connection is successfully you will see message below
14+
echo 'Connected successfully';
15+
echo "Host information: " . mysqli_get_host_info( $link ) . PHP_EOL;
16+
17+
mysqli_close( $link );
18+
*/
19+
520
?>

0 commit comments

Comments
 (0)