[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sheflug] php / moodle problem



> > I'm not sure if I'm missing something obvious, but I've hit a brick
> > wall. I'm writing a set of php / shell scripts to import pupils,
> > teachers and courses from SIMS into moodle, and I've hit a php problem I
> > can't get my head round.  There's a set of csv data in a text file
> > (pupil_enrollment.txt)

I've sorted it. The file() function was including a new line character
at the end of the data extracted from the data file. This was messing up
the sql.

David 


___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.