PDA

View Full Version : Modifing Data before insertion into DB


CHAINLINK_2006
04-29-2005, 02:36 AM
Hello everyone.

I have a problem and I hope someone has a solution. I have a column in a database that has data like "1000,,,,,,," and "1000,1040,,,,,,," on and on. I was wondering if anyone knows how to remove the commas before it is inserted into the DB. I have setup 7 dropdown boxes that must have the same name. If anyone has any ideas please let me know.

-CHAINLINK_2006

amir
04-29-2005, 04:12 PM
let me c ur code
Regards,
Aamir.

Velox Letum
04-30-2005, 01:42 AM
str_replace() (http://www.php.net/function.str-replace) ?

Tangerine Dream
04-30-2005, 10:40 PM
Hi, you can also use MySQL REPLACE (http://dev.mysql.com/doc/mysql/en/string-functions.html) function

CHAINLINK_2006
05-05-2005, 10:12 PM
Hey,

Thanks anyway. I figured it out.