<?php
$q = strtolower($_GET["q"]);
if (!$q) return;
include 'db_connect.php';

  if($_GET['mode']=='ledval'){
	  
	  $items = mysqli_query($con,"SELECT alias FROM ledgerreg");
   
	  while($row = mysqli_fetch_array($items)) 
	  {
		  echo $row[alias]."\n";
	   
	  }
  }

 
  
mysqli_close($con);
?>