Browse Source

Add 'mysql.php'

master
gergo314 4 years ago
parent
commit
e3d84d8c4e
1 changed files with 20 additions and 0 deletions
  1. +20
    -0
      mysql.php

+ 20
- 0
mysql.php View File

@@ -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);
}


?>

Loading…
Cancel
Save