PDO - bindParam and variables type
Posted: Fri Jan 30, 2009 12:25 pm
Hi all!
Little question (for those who already know the answer
)
PDO::PARAM_INT really force $id to be seen/written as integer the same as
or is only usefull with store procedures?
Little question (for those who already know the answer
Code: Select all
$stm->bindParam(1,$id,PDO::PARAM_INT);
$db->execPrepare();Code: Select all
$db->execPrepare(array( settype($id,'int') ));