Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^20: CGI Action call

by tultalk (Monk)
on Apr 01, 2018 at 01:16 UTC ( [id://1212088]=note: print w/replies, xml ) Need Help??


in reply to Re^19: CGI Action call
in thread CGI Action call

Worse yet it does not maintain the state during subsequent calls

Each subsequent all to NEXT returns the same record, the first one

I guess the table closes after the sub completes executing

I had hoped it was open until an explicit call to close or "program" termination but them as with always, each call to a sub is separate

Back to working on maintaining state as I was trying before. My only problem there was skipping same last names.

Re-invent wheel again

Replies are listed 'Best First'.
Re^21: CGI Action call
by poj (Abbot) on Apr 01, 2018 at 19:06 UTC

    Example demo cgi of how you could combine the 2 subs into 1 and use OFFSET

    HTML form to test it.

    poj

      Got it working with the handler. Works perfectly so far. Went to town, inside outside upside down!! (Kids verse).

      Very pleased. Used unique (searchterm & record id) as suggested in MySQL forum. Table stays open and accessible throughout repeated calls which I had questioned.

      Happy camper. Thanks

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2026-01-16 23:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (120 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.