$sql = mysqli_query($link, 'SELECT `id`, `name`, `phone`, `email` FROM `my_table`');
$rows = [];
while ($result = mysqli_fetch_array($sql)) {
$rows[] = $result;
}
echo json_encode($rows);
mysqli_close($link);
uploads/avatars/
!**.gitkeep
skip-log-bin
sync_binlog = 0