Quarterbore
05-26-2006, 01:52 AM
I have a strange problem that took me a long time to even figure out what the problem was... I have created a database where two of my fields are the STATE and COUNTRY and I need to be able to use these in conditionals and MYSQL operations in the future...
My problem is that the form that my forum members were using to enter the data (I have over 5000 records in this database) put a line break at the end of each entry.....
So, what this means is that if I have three Arizona entries and I print them to the screen I see this (assuming the 1st and 3rd have the extra line break:
Arizona
Arizona Arizone
I found the echo nl2br($row[state]); will show me this:
Arizona<br />
Arizona
Arizona<br />
Can anyone help me write an update script that will allow me to get rid of these darned /n (or <br /> if I use the nl3br)?
Thanks!
My problem is that the form that my forum members were using to enter the data (I have over 5000 records in this database) put a line break at the end of each entry.....
So, what this means is that if I have three Arizona entries and I print them to the screen I see this (assuming the 1st and 3rd have the extra line break:
Arizona
Arizona Arizone
I found the echo nl2br($row[state]); will show me this:
Arizona<br />
Arizona
Arizona<br />
Can anyone help me write an update script that will allow me to get rid of these darned /n (or <br /> if I use the nl3br)?
Thanks!