There is such a request:
$sql_ticket = "SELECT * FROM tickets WHERE `id`=".$id." AND `status`=\"close\" ORDER BY id DESC";
If instead of ".$id."
insert the desired number, then the query is executed. If I pass the required number through a variable, it gives an error:
You have an error in your SQL syntax; If you’re on the right line, I’m checking your order.
What is wrong doing? Please help me figure it out. I have already tried everything I know, I don’t understand what’s wrong ...
$id
come from is not yet known to write about the injection. - Visman