Guru's
I have a script which makes a database call and the returned results are
stored in a variable. if I pass this variable to the popup_menu, the options
I get in the list box are array references. Is there a way to pass the
variable to the popup_menu function or will I have to convert the
forgot to include the list...
-Original Message-
From: Stephen Howard [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 11:42 AM
To: Sabherwal, Balvinder (MBS)
Subject: RE: [cgiapp] popup_menu
Not familiar with the Sybase module, I'd guess:
my $dbnames = [ map { $_-[0] }
Sabherwal, Balvinder (MBS) wrote:
Guru's
I have a script which makes a database call and the returned results are
stored in a variable. if I pass this variable to the popup_menu, the options
I get in the list box are array references. Is there a way to pass the
variable to the popup_menu
Thanks for the suggestions, Here is what I ended up doing to make it work
my $dbh = Sybase::CTlib-ct_connect($usr, $pwd, $srv); ## Connect to the
server.
my @dbns;
my $dbnames = $dbh-ct_sql(select name from master..sysdatabases where name
not in ('master' ,'tempdb' ,'sybsystemprocs' ,'model'