-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.php
More file actions
executable file
·59 lines (46 loc) · 1.45 KB
/
test.php
File metadata and controls
executable file
·59 lines (46 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
include("dbhandler.php");
//Adatbázis kapcsolat
$dbHandler = new DbHandler("localhost","root","");
$dbHandler->connect();
$dbHandler->select_db("sharebase");
$jegyzetek = $dbHandler->selectAll("users");
$dbHandler->select_db("shareitems");
$masik = $dbHandler->selectAll("notes");
while($row = mysqli_fetch_array($masik)){
$name = $row['category'];
$username = $row['descreption'];
$pass = $row['sharedate'];
echo "<ul>";
echo "<li>" ."Kategória: ".$name."</li>";
echo "</ul>";
echo "<ul>";
echo "<li>" ."leírás: ".$username."</li>";
echo "</ul>";
echo "<ul>";
echo "<li>"."megosztás dátuma: ".$pass."</li>";
echo "</ul>";
while($row = mysqli_fetch_array($jegyzetek)){
$name = $row['name'];
$username = $row['username'];
$pass = $row['password'];
$able = $row['available'];
$log = $row['logindate'];
echo "<ul>";
echo "<li>" ."Felhasználónév: ".$name."</li>";
echo "</ul>";
echo "<ul>";
echo "<li>" ."Felhasználónév: ".$username."</li>";
echo "</ul>";
echo "<ul>";
echo "<li>"."Jelszó: ".$pass."</li>";
echo "</ul>";
echo "<ul>";
echo "<li>"."Elérhetőség: ".$able."</li>";
echo "</ul>";
echo "<ul>";
echo "<li>"."Bejentkezés dátuma: ".$log."</li>";
echo "</ul>";
}
}
?>