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
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,
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
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
4 matches
Mail list logo