AsscBB
08-24-2008, 04:06 PM
I'm trying to write some code where I scan through an array multiple times. The symptoms of my code lead me to belive that only the first call to fetch_array() is being used. Are there any limts on how many times you can run fetch_array against the same array?
.
.
.
while($get_result=$db->fetch_array($get_results))
{
//do stuff 1
}
//do stuff 2
while($get_result=$db->fetch_array($get_results))
{
//do stuff 3
}
//do stuff 4
while($get_result=$db->fetch_array($get_results))
{
//do stuff 5
}
.
.
.
My when I activate my plug-in, it looks like "do stuff 3" and "do stuff 5" are being ignored.
If this is a limitation, any suggestions on an alternative?
Thanks!
.
.
.
while($get_result=$db->fetch_array($get_results))
{
//do stuff 1
}
//do stuff 2
while($get_result=$db->fetch_array($get_results))
{
//do stuff 3
}
//do stuff 4
while($get_result=$db->fetch_array($get_results))
{
//do stuff 5
}
.
.
.
My when I activate my plug-in, it looks like "do stuff 3" and "do stuff 5" are being ignored.
If this is a limitation, any suggestions on an alternative?
Thanks!