[eluser]scorpioniz[/eluser]
[quote author="Tim Brownlaw" date="1410622090"]You have...
Code:
if($this->form_validation->run('event/createedit') == FALSE){
From the User Guide: $this->form_validation->run();
Runs the validation routines. Returns boolean TRUE on success and FALSE on failure.
You can optionally pass the name of the validation group via the function, as described in: Saving Groups of Validation Rules to a Config File.
So I'm unsure as to what you were intending by passing 'event/createedit' through it... It probably always returns FALSE!
[/quote]
If it always would return false, than it never would update or insert my sql's, and like i was saying in previous post it's doing it (update/insert to my DB), so it's not always returning false.
and this funkcion is just for simple add/edit record to/on DB from simple form.
if it's false, then it load's view, else - doing update/insert record to DB