Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Problem with two mysql queries in a loop

by lamp (Chaplain)
on Sep 19, 2008 at 04:03 UTC ( [id://712438]=note: print w/replies, xml ) Need Help??


in reply to Problem with two mysql queries in a loop

use Data::Dumper and check the values of '@db_rows' and '@live_rows' arrays before each while loop. 'undef' the arrays before pushing 'RouterB' results to it.
  • Comment on Re: Problem with two mysql queries in a loop

Replies are listed 'Best First'.
Re^2: Problem with two mysql queries in a loop
by d-evil (Novice) on Sep 19, 2008 at 05:22 UTC
    ^^ I got the point. I just assigned the @db_rows and @live_rows an empty array. making it undef makes the array undefined, so i cant use it, instead the assigning empty array worked well.\ Thanks lamp for the help :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-23 19:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found