Re: [PHP] LINE BREAK HELL

2001-11-02 Thread John Steele
Hello René, The problem is the implode() function call (you are telling it concatenate all of the lines into one). This is not tested, but try replacing: > $fcontents_string = implode('', $fcontents); > > $fp = fopen($name.".db", "w+"); > fwrite($fp,$fcontents_string); with: for ($i=0; $

[PHP] LINE BREAK HELL

2001-10-19 Thread René Fournier
This problem has been driving me insane. I have a little script that let's users enter data into a form, which then gets appended to a file (table) as a line (row). The adding part of the script works fine--and by remembering to add a "\n" at the end of each row, when the file (table) is read, P