I am creating a Current Salary Report
This is my query:
$sql = "SELECT *
FROM payroll, employees
WHERE employees.username='$username'
AND payroll.id=employees.id";
And the output is: output and by scrolling down, this is the continuation of the output.
To sum it up, the query displays all the records of a certain ID but I would want it to display the last inserted data of this certain ID in the database. How can this happen?