Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: bulding a hash

by philcrow (Priest)
on Jul 19, 2007 at 16:59 UTC ( #627570=note: print w/ replies, xml ) Need Help??


in reply to bulding a hash

Perhaps you might rather have DBI build the hash? Then you could try fetchall_hashref.

Phil

The Gantry Web Framework Book is now available.


Comment on Re: bulding a hash
Replies are listed 'Best First'.
Re^2: bulding a hash
by mnlight (Scribe) on Jul 19, 2007 at 18:42 UTC
    I thought of using fetchall_hashref but I am not sure how to use the values inputed by the user as the key. The table I am querying has no values like that. Also I only reference one column and I need a way to point to each individual row value. e.g. My option types are displayed as
    1 read 2 write 3 copy
    I want the user to enter the number value but in the script I need to use the char string.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://627570]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (17)
As of 2015-07-31 17:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls