Heintz PHP Mailing Lists [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 4:43 PM
To: Scott
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Parsing file's
You may have been heading in the right direction originally with
array_slice... This is off the top of my head, I don't guaruntee it
will
work
everyone.
-Scott
-Original Message-
From: Scott [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 02, 2002 4:57 PM
To: 'Mark Heintz PHP Mailing Lists'
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Re: Parsing file's
Ok, this did not work, but I have a new idea. From the top
1)Read
You should normalise your data - have a field in the second csv that links
to the first csv and then you can have as many rows as you want associated
with the record in the first file.
Mikey
Scott [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have a csv file
That's what I mean by starring at this too much :) I tried writting to a
seperate file, but is there a way to take an array and split it every so
many records within another loop?
Let's say the first row contains the first 18 columns which I already
parsed, I then want to grab the next 5
You may have been heading in the right direction originally with
array_slice... This is off the top of my head, I don't guaruntee it will
work...
$start = 34;
$interval = 15;
$max = 303;
// hop across orig. array 15 columns at a time
for($offset = $start;
$offset $max
] Re: Parsing file's
You may have been heading in the right direction originally with
array_slice... This is off the top of my head, I don't guaruntee it
will
work...
$start = 34;
$interval = 15;
$max = 303;
// hop across orig. array 15 columns at a time
for($offset = $start;
$offset $max
6 matches
Mail list logo