I'm trying to find the correct way of pulling specific field data from a MySQL database.
I am using the $_GET
but it shows all the data and id. How can I get the data from a specific ID(primary keys).
echo "<td>" .$view['Absence_Code']."</td>";
echo "<td>" .$view['Details']."</td>";
echo "</tr>";
2nd File
<body>
<?php
$sql = "SELECT * FROM userapproval WHERE ID=$ID";
$data = mysql_query($sql);
?>
</body>
</html>