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

[eluser]whygod[/eluser]
Why is it when I add is_unique,
Code:
$this->form_validation->set_rules('title', 'Title', 'required|is_unique');

I got this error,
Code:
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.
#2

[eluser]Herlevsen[/eluser]
You have not specified a table and a column.

Code:
$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