RE: [PHP-DB] Strange rawlist behaviour

2006-02-07 Thread Bastien Koert
$newdata = $contents[0]; for ( $i = 1; $i count($array); $i++ ) { $current = $array[$i]; $structure[$i]['name'] = substr($current, 55, strlen($current) - 0); } Should the array loop thru start at 0 (below)? Not 1 as you have the starting value for $i (above) $newdata =

RE: [PHP-DB] Strange rawlist behaviour

2006-02-07 Thread Dwight Altman
I didn't read all your code, but this jumped out to me also as to Bastien for ( $i = 1; $i count($array); $i++ ) { If you have 1 file, then you probably have 1 1 which does not execute even once. I definitely suggest also $i = 0; -Dwight -Original Message- From: Chris Payne