Welcome Guest, Not a member yet? Register   Sign In
Form Validation error?

Why is it when I add is_unique,
$this->form_validation->set_rules('title', 'Title', 'required|is_unique');

I got this error,
A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: libraries/Form_validation.php

Line Number: 953

What could be the problem?

Thanks in advanced.

You have not specified a table and a column.

$this->form_validation->set_rules('title', 'Title', 'required|is_unique[table.column]');

I think maybe, it does not do, what you think it does Wink

Theme © iAndrew 2016 - Forum software by © MyBB