Note: This is a demo template : For the details please review this document, pgs_php_insert_upate1.htm