Mar 4, 2015, 7:15 AM
Re: [Iconx] CGI::Application and MySQL
Can someone show me an example of using CGI::Application with HTML::Template to query a mysql databaseSorry, we can't do that because neither of those modules are used to query a database.
The modules you're looking for are DBI and DBD::mysql
If your query returns multiple rows, then the data structure you pass to the template will be an array of hash refs. The template would use the TMPL_LOOP tag to loop over that array.
(This post was edited by FishMonger on Mar 4, 2015, 7:15 AM)