<?php
require_once ("../config.php");
$pembayaran = $conn->real_escape_string($_POST['providerauto']);
$nominal = $conn->real_escape_string($_POST['jumlah']);
$cek_rate = $conn->query("SELECT * FROM metode_depo1 WHERE id = '$pembayaran'");
$cek_hasil = $cek_rate->fetch_array();
$menghitung = $nominal * $cek_hasil['rate'];
echo $menghitung;
?>