Location: PHPKode > scripts > WebsiteMemberManager > members-section/admin/php/show-referrers.php
<?php
$l_query="SELECT id,name,heardaboutusfrom FROM wmm_members ORDER BY id DESC";
$dbc = dbc::instance();
$result = $dbc->prepare($l_query);
$rows = $dbc->executeGetRows($result);
if (count($rows)>0)
{
 $i = 0;
 $y = 0;
 $refs = array();
 $latest_members = array();
 while ($i< count($rows))
 {
  $h=$rows[$i]['heardaboutusfrom'];
  $id=$rows[$i]['id'];
  $name=$rows[$i]['name'];
  if (array_key_exists($h,$refs)) $refs[$h]=$refs[$h] +1;
  else  $refs["$h"]=1;
  if ($i<10) $latest_members[]= "\"<b>$h</b>\" - Member name: ".ucfirst($name)." - <a href=\"view.php?id=$id&the_action=modify&name=$name\">view/modify $name</a>";
  $i++;
 }
}
else echo "none";
include("show-referrers.html");
?>
Return current item: WebsiteMemberManager