Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: dbi newbie question

by TheoPetersen (Priest)
on Jul 09, 2001 at 20:52 UTC ( #95048=note: print w/replies, xml ) Need Help??

in reply to dbi newbie question

DBI wouldn't do what you describe, unless you have duplicate rows in your tables or something. Perhaps the problem is that you are always appending to $websites and not resetting it? Try putting
$websites = '';
after the execute call.

Replies are listed 'Best First'.
Re: Re: dbi newbie question
by PrakashK (Pilgrim) on Jul 09, 2001 at 21:07 UTC
    Or, make $websites a lexically scoped (my) variable, in your outer while loop (before you start the inner while loop). That will ensure that the variable is newly created for every iteration.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2016-10-23 07:58 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (300 votes). Check out past polls.