'Metro' => array(
'type' => 'select',
'name' => 'Metro',
'caption' => 'Metro Caption',
'values' => $aMetros,
'value' => $sMetro,
'required' => true,
'checker' => array (
'func' => 'preg',
'params' => array('/^[a-zA-Z]{2}$/'),
'error' =>'Enter your Metro',
),
'db' => array (
'pass' => 'Preg',
'params' => array('/([a-zA-Z]{2})/'),
),
),
I am not 100% sure, but are your metro entries in the predefined values table more than 2 characters long. I believe those items i highlighted in red are looking for a 2 character entry. For a quick test, try the following instead:
'Metro' => array(
'type' => 'select',
'name' => 'Metro',
'caption' => 'Metro Caption',
'values' => $aMetros,
'value' => $sMetro,
'required' => true,
'checker' => array (
'func' => 'length',
'params' => array(1, 455),
'error' =>'Enter your Metro',
),
'db' => array (
'pass' => 'Xss',
),
),
also, make sure the field in your ads table has a capital M and not a lowercase m - aslo, what is the exact error you are getting