Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

last_query explanation

Quote Reply
last_query explanation
I've been looking into using more and more of LINKS SQL's centralized library modules with other scripts in my web site (about 80% there) and I came across the sub last_query and it looks pretty neat.

I noticed that it is used to pull the last key value in other subroutines, but I could be wrong.

Could this subroutine be used in scripts to "store" previous queries for future queries rather than re-writing the queries in the scripts???

Just looking for any explanation on the logic of that sub.

Thanks.

Regards,

Eliot Lee Wink
http://anthrotech.com/
Quote Reply
Re: last_query explanation In reply to
Hi,

Yes, last_query just stores the raw SQL of the last query that was run. It only stores one though, not a history.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: last_query explanation In reply to
Thanks, Alex, for the clarification!

Regards,

Eliot Lee Wink
http://anthrotech.com/