[thelist] php/mysql - inserting duplicate content

Bob Meetin bobm at dottedi.biz
Fri Apr 10 16:47:49 CDT 2009


That is definitely the problem, but I am not doing anything to call it a 
second time.  Could anything be amuck on the webserver that would foul 
up Friday like this?

Phil Turmel wrote:
> Bob Meetin wrote:
>> Thus far i've tried abut a million different things including 
>> changing how the file is read line by line, but still getting 
>> duplicate database entries.
>>
>> $result seems to be transparently getting double processed but I see 
>> not where.  The script is lean; if anyone is up to taking a look I 
>> will put up a text file.  I've written import scripts before without 
>> encountering similar problems.  Maybe this is #Followfriday and I 
>> have sinned?
>>
>> -Bob
>
> Hi Bob,
>
>
> Any chance you are accidentally running the whole script twice?  
> (Server logs?)
>
> Can you try running the PHP script from a shell prompt?
>
> HTH,
>
> Phil
>



More information about the thelist mailing list