-
Notifications
You must be signed in to change notification settings - Fork 0
/
getdata.php
37 lines (30 loc) · 2.27 KB
/
getdata.php
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
<?php
require "init.php";//needed for connection with database
$sql_query = "SELECT * FROM `data_db`";//SQL command
$result = mysqli_query($con,$sql_query);
while($row=mysqli_fetch_array($result)){
// echo nl2br($row[0] .":". $row[1].":".$row[2].":".$row[3].":".$row[4]."\n");//returning results
echo nl2br("<td class=body-item mbr-fonts-style display-7>".$row[0] ."</td><td class=body-item mbr-fonts-style display-7>".$row[1]."</td><td class=body-item mbr-fonts-style display-7>".$row[2]."</td><td class=body-item mbr-fonts-style display-7>".$row[3]."</td><td class=body-item mbr-fonts-style display-7>".$row[4]."</td></tr>");
}
echo ":";
$sql_query = "SELECT * FROM `data_gala` ";//SQL command
$result = mysqli_query($con,$sql_query);
while($row=mysqli_fetch_array($result)){
// echo $row[0] ."`". $row[1]."`".$row[2];//returning results
echo nl2br("<td class=body-item mbr-fonts-style display-7>".$row[0] ."</td><td class=body-item mbr-fonts-style display-7>".$row[1] ."</td><td class=body-item mbr-fonts-style display-7>".$row[2] ."</td></tr>");
}
echo ":";
$sql_query = "SELECT * FROM `data_iemini` ";//SQL command
$result = mysqli_query($con,$sql_query);
while($row=mysqli_fetch_array($result)){
// echo nl2br($row[0] .":". $row[1].":".$row[2].":".$row[3].":".$row[4]."\n");//returning results
echo nl2br("<td class=body-item mbr-fonts-style display-7>".$row[0] ."</td><td class=body-item mbr-fonts-style display-7>".$row[1] ."</td><td class=body-item mbr-fonts-style display-7>".$row[2] ."</td><td class=body-item mbr-fonts-style display-7>".$row[3] ."</td></tr>");
}
echo ":";
$sql_query = "SELECT * FROM `data_mie` ";//SQL command
$result = mysqli_query($con,$sql_query);
while($row=mysqli_fetch_array($result)){
// echo nl2br($row[0] .":". $row[1].":".$row[2].":".$row[3].":".$row[4]."\n");//returning results
echo nl2br("<td class=body-item mbr-fonts-style display-7>".$row[0] ."</td><td class=body-item mbr-fonts-style display-7>".$row[1] ."</td><td class=body-item mbr-fonts-style display-7>".$row[2] ."</td></tr>");
}
?>