Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: problem with returning all records

by marto (Cardinal)
on Apr 16, 2024 at 15:37 UTC ( [id://11158896]=note: print w/replies, xml ) Need Help??


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

This is because you didn't actually fix the problem earlier (while making it worse), and ignored the working example, hippo gave you.

  • Comment on Re^3: problem with returning all records

Replies are listed 'Best First'.
Re^4: problem with returning all records
by frank1 (Beadle) on Apr 16, 2024 at 16:50 UTC

    hippo example was hard for me to figure it out, according to what i want

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

      • Clobber $html rather than append to it.
      • Create a json object.
      • print a header and the encoded json. The new problem.

      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.

        thanks, i got it working now

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11158896]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-05-01 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found