Welcome Guest, Not a member yet? Register   Sign In
Send complex SQL string to another controller/view for print
#1

Hi guys
I'm generating a very long filtering and complex SQL
I have a view with the search/filter form. When form submitted, the results load (using $.ajax from jQuery) in a div below form

Now, the results div has some buttons for printing results, exporting to pdf, excel, and so.

I've been wondering how to re-use the sql query generated to filter the results in controller with the results div, but every idea I get lead my site to being hacked.

Maybe to store -temporarily- the sql string in a session variable? So when I call print (bootstrap modal) I get the flashdata and then clean it ?

Any tips or suggestions for doing this without loosing security? Thanks a lot
Reply


Messages In This Thread
Send complex SQL string to another controller/view for print - by kabeza - 10-07-2015, 01:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB