Re: Re: No data?
tamouse mailing lists <[email protected]>
| Newsgroups | gmane.comp.php.database |
|---|---|
| Message-ID | <CAHUC_t8_LiA+ZTN_ekMZrG7B=OrzTqCPCC=QCa5eRumv07OE+g@mail.gmail.com> |
With one change to the data file to make the indexing work correctly
and read all the fields: to accommodate the first id auto_increment
field, the first value in the csv line must be null:
null.a,b,c,d,e
null,f,g,h,i,j
null,k,l,m,n,o
And further, the field count should subsequently be one less in line
53 when creating the table:
for ($i=0; $i < (count($fields)-1); $i++) {
and that should do it.
On Thu, Jul 26, 2012 at 10:20 PM, tamouse mailing lists
<[email protected]> wrote:
> Brad, do take a look at http://pastie.org/4340383
> It does work.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php