|
|
|
@@ -0,0 +1,20 @@ |
|
|
|
<?PHP |
|
|
|
$query = "SELECT * FROM lofasz"; |
|
|
|
$conn = mysqli_connect($servername, $username, $password); |
|
|
|
// Check connection |
|
|
|
if ($conn) { |
|
|
|
if ($result = mysqli_query($conn,$query)) { |
|
|
|
$result_array = array(); |
|
|
|
/* fetch associative array */ |
|
|
|
while ($row = mysqli_fetch_assoc($result)) { |
|
|
|
$result_array[] = $row; |
|
|
|
} |
|
|
|
$return = $result_array; |
|
|
|
|
|
|
|
mysqli_free_result($result); |
|
|
|
} |
|
|
|
mysqli_close($conn); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
?> |