2023-05-17 14:39:43 +02:00
|
|
|
<?php
|
2023-09-08 13:55:31 +02:00
|
|
|
$servername = 'localhost';
|
|
|
|
$database = 'wylazowskiw';
|
|
|
|
$username = 'wylazowskiw';
|
|
|
|
$password = 'password1$';
|
|
|
|
$mysqliProceduralConection = mysqli_connect($servername, $username, $password, $database);
|
|
|
|
|
|
|
|
if (!$mysqliProceduralConection)
|
|
|
|
{
|
|
|
|
die("Próba połączenia z bazą danych zakończyła się niepowodzeniem. Błąd: "
|
|
|
|
. mysqli_connect_error());
|
|
|
|
}
|
|
|
|
echo '<p>Połączono z bazą danych <b>' . $database . '</b> na serwerze <b>' . $servername . '</b><br>';
|
|
|
|
echo 'Host info: ' . $mysqliProceduralConection->host_info . '<br>';
|
|
|
|
echo 'MySQLi stat: ' . mysqli_stat($mysqliProceduralConection) . '</p>';
|
|
|
|
|
|
|
|
mysqli_close($mysqliProceduralConection);
|
|
|
|
?>
|