Answer the question
In order to leave comments, you need to log in
Why is SQL injection dangerous?
Why is SQL injection dangerous?
How can they be bypassed?
What can be done instead of them?
// Получение одной статьи по её id
function get_lesson_by_id($id) {
global $db;
$bookmarks = $db->query("SELECT * FROM entries WHERE id = $id");
foreach ($bookmarks as $bookmark) {
return $bookmark;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question