mirror of
https://github.com/FlyInTheBox/31TSAI.git
synced 2024-11-09 20:44:11 +01:00
l
This commit is contained in:
parent
98cfc6e432
commit
a302cc6517
2 changed files with 13 additions and 17 deletions
|
@ -11,27 +11,20 @@
|
|||
table{
|
||||
border-collapse: collapse;
|
||||
}
|
||||
tr{
|
||||
tr,th,td{
|
||||
border: 1px solid black;
|
||||
|
||||
|
||||
}
|
||||
th{
|
||||
border: 1px solid black;
|
||||
|
||||
}
|
||||
td{
|
||||
border: 1px solid black;
|
||||
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<?php
|
||||
$conn = mysqli_connect('127.0.0.1', 'wilk', 'CTwwTdsQoP', 'wilk');
|
||||
if (!$conn)
|
||||
{
|
||||
$database = 'wylazowski';
|
||||
$servername = 'localhost';
|
||||
$username = 'Wylazowski';
|
||||
$password = 'tajnehaslo';
|
||||
$conn = mysqli_connect($servername, $username, $password, $database);
|
||||
if (!$conn) {
|
||||
die('Próba połączenia z bazą danych zakończyła się niepowodzeniem. Błąd: '
|
||||
. mysqli_connect_error());
|
||||
}
|
||||
|
|
|
@ -9,9 +9,12 @@
|
|||
</head>
|
||||
<body>
|
||||
<?php
|
||||
$conn = mysqli_connect('127.0.0.1', 'wilk', 'CTwwTdsQoP', 'wilk');
|
||||
if (!$conn)
|
||||
{
|
||||
$database = 'wylazowski';
|
||||
$servername = 'localhost';
|
||||
$username = 'Wylazowski';
|
||||
$password = 'tajnehaslo';
|
||||
$conn = mysqli_connect($servername, $username, $password, $database);
|
||||
if (!$conn) {
|
||||
die('Próba połączenia z bazą danych zakończyła się niepowodzeniem. Błąd: '
|
||||
. mysqli_connect_error());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue