I do not understand the length parameter in the instructions PDO PARAM_*.
Does the length indicate the number of characters required, or is it the maximum?
Example:
$sth->bindParam(2, $color, PDO::PARAM_STR, 12);
Is it required 12 characters or is it limited to 12 characters? Or do I completely understand what this is doing?
source
share