I am new to PDO, I know with execute you send the value as a string, but when you bind param you can define what it is, but no mater what my queries always work when sending them via a string via an execute, so what is the point (there is one I am just trying to figure what is it) of using bind param.
For example:
$insert_whatever = $database->prepare("INSERT INTO test(blah, blah1) VALUES (?, ?)");
$insert_whatever->bindparam('1', PDO::PARAM_INT);
$insert_whatever->execute();
$insert_whatever = $database->prepare("INSERT INTO test(blah, blah1) VALUES (?, ?)");
$insert_whatever->execute(array('1','1'));