asked on
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$count=mysql_num_rows($rsDesignated);
$acctID = $_POST['acctID'];
$amount = $_POST['amount'];
for($i=0; $i<$count; $i++){
mysql_select_db($database_con_portal_test, $con_portal_test);
$SQL = "INSERT INTO tbldepbrk (depBrkAmnt, depBrkDate, depDesAcctID, depBrkClientID ) VALUES ('$amount[$i]' , '$_POST[date]' , '$acctID[$i]' , '$row_rsDesignated[desAcctGrpID]')";
if (!mysql_query($SQL, $con_portal_test))
{
echo ('Error: ' . mysql_error($con_portal_test));
}
if ($SQL) {
// email confirmation to axess admins
// send e-mail to ...
$to = "info@thechurchbusinessguys.com";
$to2 = $row_rs_user['usrEmail'];
// Your subject
$subject= "Deposit Info Submitted by:" .$_SESSION['MM_Username'];
$subject2 = "Your Deposit information has been submitted";
// From
$header="Axess Client Portal Messaging";
// Your message
$messages = "a client has submitted a new deposit to be recorded.";
$message2 = "Thanks for your submission. One of our staff members will process the information shortly. You will receive an email once the payment has been processed in our system.";
// send email
$sentmail = mail($to, $header, $subject, $messages);
$sentmail2 = mail($to2, $header, $subject2, $message2);
}
}}
?>
PHP is a widely-used server-side scripting language especially suited for web development, powering tens of millions of sites from Facebook to personal WordPress blogs. PHP is often paired with the MySQL relational database, but includes support for most other mainstream databases. By utilizing different Server APIs, PHP can work on many different web servers as a server-side scripting language.
TRUSTED BY