This topic is locked

Preventing SQL injection

8/25/2021 12:11:25 PM
PHPRunner General questions
S
smez author

According to:
https://xlinesoft.com/blog/2021/06/17/secure-low-code-web-applications/

...I should use DB::PrepareSQL when adding records using my own code (see point 11 in the blog post above).

If I use the Database API: Insert function e.g.:

$data = array();
$data["make"] = "Toyota";
$data["model"] = "RAV4";
$data["price"] = 16000;
DB::Insert("cars", $data );

...will this also protect my code from SQL injection?