http://www.perlmonks.org?node_id=11158898


in reply to Re^4: problem with returning all records
in thread problem with returning all records

If you step over the code you've posted, you're still doing everything inside the foreach. It doesn't make sense to

for each query result. Use  $html .= rather than clobber it. Create json once outside the foreach then print the header and json content once.

Again, it'd be a lot less painful for all concerned if you took the time to read and understand what has been written in replies and read & step thorough your own code since you don't seem to understand what you wrote.

Replies are listed 'Best First'.
Re^6: problem with returning all records
by frank1 (Scribe) on Apr 16, 2024 at 17:54 UTC

    thanks, i got it working now