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


in reply to Integration of SQL Search Results Into An Existing HTML Template

Your mission is easily accomplished by simply blending the HTML markup and the cached search result data together. You do this by reading the two files either simultaneously or successively and incorporating the contents of one into the other. This is a pretty standard scripting task, so it shouldn't be difficult.

(It's Perl, not PERL.)

  • Comment on Re: Integration of SQL Search Results Into An Existing HTML Template

Replies are listed 'Best First'.
Re^2: Integration of SQL Search Results Into An Existing HTML Template
by Milti (Sexton) on Sep 20, 2013 at 23:32 UTC

    The cgi I'm using is intended to generate an html page and output it to the inquirer's browser on the fly. I want to immediately display the search results but I want to open my template (to write to it and save as a different file. Then open the new file and display it. I haven't been able to get the SQL results to write to that file. They are simply displayed on my browser. Historically I have been able to create an array of files contained in a directory, for instance, and have the elements printed on a contents template. How do I get the SQL results and not have them displayed immediately?