<?
include ("config.inc.php");
$MemberID=$_POST['MemberID'];
$arrResult=array();
$select=mysql_query("select * from member WHERE MemberID='".$MemberID."'") or die (mysql_error());
$numFields=mysql_num_fields($select);
while($result=mysql_fetch_array($select)){
$arrCol=array();
for($i=0;$i<$numFields;$i++){
$arrCol[mysql_field_name($select,$i)]=$result[$i];
}
array_push($arrResult,$arrCol);
}
echo json_encode($arrResult);
?>