P
P
partyzanx2018-05-03 11:48:49
Database
partyzanx, 2018-05-03 11:48:49

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

1 answer(s)
O
oh_shi, 2018-05-03
@partyzanx

exploits_of_a_mom.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question