20141121 update query sample in php