I have tried the following:
<?php
require("config/conf.php"); //El fichero donde se conecta a la base de datos
$consulta = "SELECT * FROM `users`";
$resultado = mysqli_query($conexion, $consulta);
$rawdata = array();
$i = 0;
while($row = mysqli_fetch_array($result)) {
$rawdata[$i] = $row;
$i++;
}
echo json_encode($rawdata);
?>
Please someone help me the deploy is very soon and I need it urgently.