Welcome Guest, Not a member yet? Register   Sign In
form_validation two is_unique
#3

Does this not work?

PHP Code:
$this->form_validation->set_rules('GatewayId''GatewayId''is_unique[tab_expense.tab_gateway_id]|is_unique[tab_income.tab_gateway_id]'); 

i.e, just run the two rules one after another.

Alternatively the way you have done it in your second suggestion also seems fine.

Paul

PS I have not tested it but it looks like it might work.
Reply


Messages In This Thread
form_validation two is_unique - by oscarenzo - 10-23-2017, 03:10 PM
RE: form_validation two is_unique - by oscarenzo - 10-24-2017, 12:36 AM
RE: form_validation two is_unique - by PaulD - 10-24-2017, 11:01 AM
RE: form_validation two is_unique - by oscarenzo - 10-24-2017, 02:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB