Skip to content

Instantly share code, notes, and snippets.

Created April 15, 2016 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/97b0ceaa35197b14298239a9fb9ae9c8 to your computer and use it in GitHub Desktop.
Save anonymous/97b0ceaa35197b14298239a9fb9ae9c8 to your computer and use it in GitHub Desktop.
if(isset($_POST['pRate'], $_POST['dRate'], $_POST['eRate']))
{
$pounds= $_POST['pRate'];
$dollars= $_POST['dRate'];
$euros= $_POST['eRate'];
$_pounds= mysql_real_escape_string($pounds);
$_dollars= mysql_real_escape_string($dollars);
$_euros= mysql_real_escape_string($euros);
$sql= ("UPDATE Exchange
SET poundRate= $_pounds,
dollarRate= $_dollars,
euroRate= $_euros");
$result= mysql_query($sql);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment