Hi,
I'm building a page where the same SQL query is used several times.
I'm now using "Country" as an example, but my problem is also present with other subjects/query's.
a SQL command fetches all the Countries from a table and loads them into an array called $Country
before the script reaches this part below.(with TR)
$Country is also being used for some other purpose on that page.
When $Country is being used for the 1st time. it works great.
Futhermore:
Imagine that i also want a <TR></TR>to be repeated on the same page till a certain db table is empty.
in each row 5 <TD></TD> excist.
in 3 of the 5 <TD>'s a new loop is started using $Country e.g. as==> while ($row = $country)
When $Country is being used for the 1st time it works great.
It doesn't matter if the first fetch is in/outside the loop.
For the 2nd, 3rd and so on the $Country array seems to be empty and no results appear on my page execpt the first time.
Does anymore know why this happens.
Can a array only be used once (when it is used in a while loop???)
I hope someone can give me some advice on this.
Best Regards,
Rick Beemsterboer
Netherlands
rbeemsterboer@xs4all.nl