title: PHP Redirect after Mysql Insert
body: <p>Below is my mySQL insert:</p>
  
  <pre><code>$sql="INSERT INTO gj (name, phone, city, zipcode, description, dateadded, website, address1, other2, payment_options, Products, email,cat1,cat2,cat3)
      VALUES
      ('$companyname','$phone','$city','$zipcode','$description',curdate(),'$website','$address','$other','$payment','$products','$email','$select1','$select2','$select3')";
  
      if (!mysql_query($sql,$link))
        {
        die('Error: ' . mysql_error());
        }
      echo "&lt;br/&gt;&lt;h2&gt;&lt;font color='green' style='font-size:15px;float:right'&gt;1 business added&lt;/font&gt;&lt;/h2&gt;";
  
      mysql_close($link);
  }
  
      ?&gt;
  </code></pre>
  
  <p>Now, instead of displaying "1 business added" in green, I'd like to redirect back to the page I was on before. Thanks.</p>