If you would like some help to fix that edit function I'm your man, I'm more interested in Ruby on Rails technology, but I know how to do that as well with php (and SQL of course)