Skip to content

Commit 4be5965

Browse files
committed
db info and UI
1 parent 393c210 commit 4be5965

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

dbfetch.php

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
require'dbinfo.php';
4+
5+
$sql = "SELECT * FROM battle";
6+
$result = $conn->query($sql);
7+
8+
if ($result->num_rows > 0) {
9+
10+
11+
$lngArray = array();
12+
$index = 0;
13+
14+
while($row = mysqli_fetch_array($result)){
15+
$Array[$index] = $row;
16+
$index ++;
17+
}
18+
} else {
19+
echo "0 results";
20+
}
21+
$conn->close();
22+
23+
?>
24+
25+
26+

0 commit comments

Comments
 (0)