2009-02-04から1日間の記事一覧
PDOのPDOStatement::bindParamは型を自動的に判別してくれないとのこと。 というわけで型判別してバインドする何か。 $stmt = $pdo->prepare($sql); foreach($binds as $key => $bind){ $type = PDO::PARAM_STR; switch(true){ case is_bool($bind) : $type …
PDOのPDOStatement::bindParamは型を自動的に判別してくれないとのこと。 というわけで型判別してバインドする何か。 $stmt = $pdo->prepare($sql); foreach($binds as $key => $bind){ $type = PDO::PARAM_STR; switch(true){ case is_bool($bind) : $type …