I have a function that captures the URL ID and does the query in the DB and returns the value on the page, how to do this query without appearing the ID in the URL?
Currently it looks like this:
How do I hide the ?id=9991
of the URL to look like this:
I'm leaving the function here, but I think the function itself does not add up to the question.
function protetor() {
$conexao = mysqli_connect("127.0.0.1","root","","protetor");
$id = $_GET['id'];
$dados = mysqli_query($conexao, "SELECT * FROM download WHERE ID = $id");
$download = mysqli_fetch_array($dados);
if (!empty($id)) {
echo $download['link'];
} else {
echo "Link de download não encontrado!";
}
}