Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: creating an array from MySQL results

by rnahi (Curate)
on Oct 30, 2005 at 19:21 UTC ( #504024=note: print w/replies, xml ) Need Help??


in reply to creating an array from MySQL results

Your code should work as it is.

The advice I can give you is the same you may find at Before asking a database related question ..., where it is outlined how to test your SQL before resorting to the script.

Additionally, you may see some different ways of creating an array from a DBI call in DBI Recipes.

My favorite is :

my $arrayref = $dbh->selectcol_arrayref($query);

HTH

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://504024]
help
Chatterbox?
[1nickt]: choroba pm-cb-g does not seem to implement the preferences, specifically font family ... should I raise an issue on Githhub or ... ?

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2017-10-18 12:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (244 votes). Check out past polls.

    Notices?