title: redirect page after completing update or insertion
body: <p>There are two pages called <code>result.php</code> and <code>getdata.php</code></p>
  
  <p>the <code>result.php</code> will show a search results. if search term is not in database then it should redirect to <code>getdata.php</code> .</p>
  
  <p><code>getdata.php</code> will analyze query and grab data from other resources then insert / update MySQL database. immeadiate after inserting/updating database then it should redirect to <code>result.php</code></p>
  
  <p>Finally <code>result.php</code> will show result as per the query term.</p>
  
  <p>how can be this done with php and mysql??</p>