Hello,
I am using the following method to update my database. I was wondering if there are any security issues by not using constants such as PDO::PARAM_STR and PDO::PARAM_INT ?
[php]
$stmt = $database->prepare($sql);
$stmt->bindParam(":carbrand", $CarBrand, PDO::PARAM_STR);
$stmt->bindParam(":carname", $CarName, PDO::PARAM_STR);
$stmt->bindParam(":date", $date, PDO::PARAM_STR);
$stmt->bindValue(":viewed", “1”, PDO::PARAM_INT);
$stmt->bindParam(":ip", $ip, PDO::PARAM_STR);
[/php]
Thank you.