If you want it on the same page you got to set the form action to the same page but also need to set an extra variable to tell the script something is selected.
Try to do where you want the info displayed:
If (do=='1'){
your query
echo it
}
else{}
In your form make a hidden field with the name do and value 1