I have 2 question
I usually saw this
$sql->bindParam(':xxx', $yyy, PDO::PARAM_zzz);
$sql->execute();
Why don't use (1)
$sql->execute(array(':xxx'=>$yyy));
and if there're too many value should I use (2)
$sql->bindParam(':aaa', $bbb, PDO::PARAM_zzz);
$sql->bindParam(':ccc', $ddd, PDO::PARAM_zzz);
$sql->bindParam(':eee', $fff, PDO::PARAM_zzz);
$sql->execute();
or
$sql->execute(array(':aaa'=>$bbb,':ccc'=>$ddd,':eee'=>$fff));