fix syntax errors in php update calls