SQL SELECCIONE POR CONTENTO LENGHT
$query = ("SELECT * FROM $db WHERE conditions AND LENGTH(col_name) = 3");
ZigmaS
$query = ("SELECT * FROM $db WHERE conditions AND LENGTH(col_name) = 3");