Posts by Marlon Yago • 1 point
2 posts
-
-1
votes2
answers105
viewsA: php array for json will not all data
Thank you all, I managed to solve the problem $paises = array(); while ($pais = mysqli_fetch_assoc($query)) { $paises[] = $pais['paises']; } echo json_encode($paises); And I changed the DB that was…
-
-2
votes2
answers105
viewsQ: php array for json will not all data
Hi, I’m having a problem with my code and I wanted your help. I need to take data from a table and send it as json, I have 10 items in my table but json only sends one. Table: local In my code where…