Could you post the output of the ereg calls?
Quote:
|
The code up above will not work for updating, but when I add the actual value it updates.
|
This sounds like the ereg calls are not creating the data you expect, using echo/var_dump to display the values will allow you to see what the code is trying to put in the database.