Úspěšné přihlášení do db (! localhost) vid.78
This commit is contained in:
parent
6c87537056
commit
8f6b18ad99
@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
$db_host = "127.0.0.1";
|
||||||
|
$db_user = "kankys.jr";
|
||||||
|
$db_password = "Heslo123";
|
||||||
|
$db_name = "skola";
|
||||||
|
|
||||||
|
$connection = mysqli_connect($db_host, $db_user, $db_password, $db_name);
|
||||||
|
if (mysqli_connect_error()) {
|
||||||
|
echo mysqli_connect_error();
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "Úspěšné přihlášení do databáze";
|
||||||
|
|
||||||
|
?>
|
Loading…
Reference in New Issue
Block a user