Location: PHPKode > scripts > WebsiteMemberManager > members-section/admin/php/automated_renewals.php
<?php
$dbc = dbc::instance();
if (isset($save))
{
 $update_query = "UPDATE wmm_paypal_config
                   SET automated_renewals='$automated_renewals',
                   automated_renewals_days='$automated_renewals_days'";
 $result = $dbc->prepare($update_query);
 $result = $dbc->execute($result);
 $feedback->setShow("Change successful", "Automated renewals");
}
$result = $dbc->prepare("SELECT * FROM wmm_paypal_config");
$rows = $dbc->executeGetRows($result);
$row = $rows[0];
include("automated_renewals.html");
echo "<script>\n
 document.AF.automated_renewals.value=".$row['automated_renewals']."\n
 document.AF.automated_renewals_days.value=".$row['automated_renewals_days']."\n
 </script>";
?>
Return current item: WebsiteMemberManager