Is it possible to call a function without javascript/Jquery/Ajax in one PHP file.
<?php $connect = mysqli_connect("localhost","root","",""); <a href="#" onclick="permit_access()">Permit</a> function permit_access() { $permit = mysqli_query($connect,"UPDATE permittable SET confirm = 1 WHERE id = keyid"); return $permit; } ?>
Advertisement
Answer
This is not possible.
I would recommend you read about “server side scripts” and “client side scripts”.
They live on different planets. 🙂