i have employeeinfo table and employeeloan table.. and i use this query:
$result=mysqli_query($con,"select tblemployeeinfo.employeeid, tblemployeeloan.amount from tblemployeeinfo left join tblemployeeloan on tblemployeeinfo.employeeid = tblemployeeloan.employeeid where tblemployeeinfo.employeeid = <employee id for example employee id 1>");
while($row = mysqli_fetch_array($result)){
echo "<br>".$row['employeeid'];
echo "<br>".$row['amount'];
}
the result is
employee id: 1
amount: 1000
employee id: 1
amount: 500
employee id: 1
amount: 100
but what i want is to display like this:
employee id: 1
amount: 1000
amount: 500
amount: 100
sorry for my bad english. tnx in advance