Re: CGI and DBI : using db queries in html

2007-11-09 Thread neil
Thanks to all who replied (David Moreno Garza, Paul Lallo, and Sean Davis who replied off-list). Sean very kindly pointed out that I was in fact only one row with my fetchrow_array statement. Paul is correct and [ @studies ] and [EMAIL PROTECTED] are in this instance synonyms. My script now work

Re: CGI and DBI : using db queries in html

2007-11-09 Thread Paul Lalli
On Nov 8, 6:34 pm, [EMAIL PROTECTED] (David Moreno Garza) wrote: > On Thu, 2007-11-08 at 11:22 -0800, neil wrote: > > $q -> popup_menu(-name => 'study_select', -values => > > [EMAIL PROTECTED]), > > You should be passing: -values => [EMAIL PROTECTED] Please don't reply when you don't know what you

Re: CGI and DBI : using db queries in html

2007-11-08 Thread Paul Lalli
On Nov 8, 2:22 pm, [EMAIL PROTECTED] (Neil) wrote: > Hi, > > I've a perl script that I'm working on to get a list of options from a > database presented to a user in a form. I can do the db query fine > and store the variables in an array, but I can't workout how to get > the array printed as a li

Re: CGI and DBI : using db queries in html

2007-11-08 Thread David Moreno Garza
On Thu, 2007-11-08 at 11:22 -0800, neil wrote: > $q -> popup_menu(-name => 'study_select', -values => > [EMAIL PROTECTED]), You should be passing: -values => [EMAIL PROTECTED] D. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl