[PHP] removing appended chars - please help, quite urgent

2003-03-13 Thread Adriaan Nel
Hi every1, I need to update records in a mysql dbase, from a .csv file, everything works fine, but the index column, $npr_nr from below sometimes has a space at the end, this causes the dbase index not to match this one, therefore this record isn't updated. Do any1 know how I can check for

Re: [PHP] removing appended chars - please help, quite urgent

2003-03-13 Thread Ernest E Vogelsinger
At 09:59 13.03.2003, Adriaan Nel said: [snip] I need to update records in a mysql dbase, from a .csv file, everything works fine, but the index column, $npr_nr from below sometimes has a space at the end, this causes the dbase index not to match this one,

Re: [PHP] removing appended chars - please help, quite urgent

2003-03-13 Thread - Edwin
Hi, Adriaan Nel [EMAIL PROTECTED] wrote: Do any1 know how I can check for spaces here, and remove them if present http://www.php.net/manual/en/function.trim.php ? http://www.php.net/manual/en/function.rtrim.php ? http://www.php.net/manual/en/function.lrim.php ? - E

Re: [PHP] removing appended chars - please help, quite urgent

2003-03-13 Thread Adriaan Nel
Thanks, I tried the trim function and it solves most of my problems, but I still get duplicatesit's so weird, could any1 please just quickly check through these lines of code and tell me if you see anything thats wrong The records in the dbase are uploaded with another php file, which