Yes you are right Rob. When I reduce the array to four rows everything is working fine. Here are the results; Curr row = 0 - Key: 2; Value: 55 Key: 2; Value: 55 Curr row = 1 - Curr row = 2 - Key: 3; Value: 55 Key: 3; Value: 55 Curr row = 3 - Curr row = 4 - Key: 2; Value: 55 Key: 2; Value: 55 As you can see yourself, the first row intercepts row 2 at 55. Row 1 is 0 because there are no interceptions. etc. So yes, you are right. The question is why does it fail to work on a bigger array? Do you have any ideas. Robert --- "Atkinson, Robert" <ratkinson@xxxxxxxxxxxxx> wrote: > I'm sure the basic function of the script is > correct. Try reducing the number > of rows down to about 4 and adding some debugging to > allow you to see what > data each part of the script is looking at. > > Let me know if you get stuck, or don't know where to > add the debugging. > > Rob. > > -----Original Message----- > From: php-objects@xxxxxxxxxxxxxxx > [mailto:php-objects@xxxxxxxxxxxxxxx] On > Behalf Of Robert Barker > Sent: 18 January 2008 16:01 > To: php-objects@xxxxxxxxxxxxxxx > Subject: RE: HOW DO I CREATE A LOOP > CRAWLER? > > Hi Rob, > > It's me again. It's not working, I am afraid. > Earlier > on I thought everything was OK because I could see > visually the intercepts working as it should but > what > I failed to realize was the values were similar in > the > other corresponding arrays. > > *********************************************************************************** > Any opinions expressed in email are those of the > individual and not necessarily those of the company. > This email and any files transmitted with it are > confidential and solely for the use of the intended > recipient > or entity to whom they are addressed. It may contain > material protected by attorney-client privilege. If > you are not the intended recipient, or a person > responsible for delivering to the intended > recipient, be advised that you have received this > email in error and that any use is strictly > prohibited. > > Random House Group + 44 (0) 20 7840 8400 > http://www.randomhouse.co.uk > http://www.booksattransworld.co.uk > http://www.kidsatrandomhouse.co.uk > Generic email address - enquiries@xxxxxxxxxxxxxxxxx > > Name & Registered Office: > THE RANDOM HOUSE GROUP LIMITED > 20 VAUXHALL BRIDGE ROAD > LONDON > SW1V 2SA > Random House Group Ltd is registered in the United > Kingdom with company No. 00954009, VAT number > 102838980 > *********************************************************************************** > > __________________________________________________________ Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com