What would be the best or right way to get the value from the url using $_GET['id'] and to use it in a mysqli query?
Currently i'm using a regular expresion :
$id = preg_replace('/{([a-zA-Z0-9]+)}/', '', $_GET['id']);
but I don't know if this is the right or best way to do this.
Please explain your answer.