is it safe to use db->query to avoid sql injection?

Viewed 24

is this code vulnerable to sql injection ? I couldn't exploit it in the app but i want to be sure if there any one here that can confirm it

$sql = $db->query('SELECT * FROM {registrations} WHERE token = ?',array(Get::val('token')));

0 Answers
Related