CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate: Re: [Iconx] CGI::Application and MySQL: Edit Log

Veteran / Moderator

Mar 4, 2015, 7:15 AM

Views: 10961
Re: [Iconx] CGI::Application and MySQL

Can someone show me an example of using CGI::Application with HTML::Template to query a mysql database

Sorry, 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)

Edit Log:
Post edited by FishMonger (Veteran) on Mar 4, 2015, 7:15 AM

Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives