Location: PHPKode > scripts > WebsiteMemberManager > members-section/admin/php/delete-all-none-activated.php
<?php
include_once("member-class.php");
$dbc = dbc::instance();
$to_delete="Select * FROM wmm_members where activated='0' ";
$result = $dbc->prepare($to_delete);
$rows_to_delete = $dbc->executeGetRows($result);
$i=0;
if (count($rows_to_delete)>0)
{
 $member=new WMMmembers();
 while ($i < count($rows_to_delete))
 {
  $member->delete($rows_to_delete[$i]['id']);
  $i++;
 }
}
header("location: activate.php");
?>
Return current item: WebsiteMemberManager