Your str_replace statement looked fine. Some of the other code could 
have been neater, but the str_replace was good ;-)

PT


Grant wrote:
> PT,
> 
> I discovered that Mysql has a way of doing the same thing. I used the
> replace() function in MySQL
> 
> $query = "UPDATE tblRentalsImport set listPrice =
> replace(listPrice,',','')";
> 
> I really want to understand the PHP function for str_replace(), but I'm
> going to go back to that when I have more time. This is primarily for a
> business solution for myself, and after several hours, I had to move on to
> the next task since I found a suitable solution. However, I believe that you
> answered the question because I did NOT have the WHERE clause in my update
> query. That likely explains my dilemma.
> 
> Thanks,
> Grant

Reply via email to