make it a form and refresh with query results...
U can't trigger a PHP function with javascript. PHP is server side only. U'd ned to open a popup and refresh the content of opener with javascript but it's pointless... Just use a form with only a button.