";
$operatorName = $_POST["oname"] . "
";
$operatorEmail = $_POST["email"] . "
";
$operatorPhone = $_POST["phone"] . "
";
try {
//$conn = new PDO("mysql:host=localhost;dbname=$database", $user, $password);
//$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
//$stmt = $conn->prepare("INSERT INTO $table (name, surname, age) VALUES (:name, :surname, :age)");
//$stmt->bindParam(':name', $_POST['fname']);
//$stmt->execute();
//echo "
Data inserted.
"; } catch (PDOException $e) { echo "Error!: " . $e->getMessage() . "
"; } }