Posts by user142140 • 36 points
1 post
-
2
votes1
answer230
viewsA: How to generate a json with parent-child format
Just attach "data" as a $premios key. You can also use the following syntax to create and add new items in the array: if ($count > 0) { while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {…