Posts by Alexandre Paulo • 121 points
1 post
-
2
votes5
answers632
viewsA: PHP that returns null table fields that are neither empty nor null in Mysql
Why complicate and "invite" errors?. There’s a much easier way to do this (untested code): $output = []; while($row = $result->fetch_assoc()) { $output[] = $row; } echo json_encode($output);…