Path : /var/www/html/kPp2s@lary/
File Upload :
Current File : //var/www/html/kPp2s@lary/selectData.php

<?php
include_once("Connections/areaConn.php");
mysql_select_db($database_areaConn, $areaConn);
if(isset($_POST["type"]) and $_POST["type"]=="T"){
	$selectSql="select * from headsalary_tb order by hs_id desc";
}else if(isset($_POST["type"]) and $_POST["type"]=="P"){
	$selectSql="select * from headpersonal_tb order by hs_id desc";
}
$query_select=mysql_query($selectSql,$areaConn);
$name="";
while($select=mysql_fetch_assoc($query_select)){
	$name.=$select["hs_name"].",";
}
echo $name;
?>