Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Validation with variables
Post: RE: Validation with variables

Great tip. Thanks a lot!!
22,892 Views
11 Replies
04-06-2015, 01:02 PM
ruiganga
    Thread: Validation with variables
Post: RE: Validation with variables

Awsome. Even is_unique works like this!! if(!$this->form_validation->is_unique($email, "tablename.fieldname")){ //if email already exists $validation_status = 0; array_push($fields_failed...
22,892 Views
11 Replies
04-04-2015, 04:53 PM
ruiganga
    Thread: Validation with variables
Post: RE: Validation with variables

I've found this solution: // validate data $this->load->library('form_validation'); $validation_status = 1; // by default validation is ok $fields_failed = array(); // ...
22,892 Views
11 Replies
04-04-2015, 04:45 PM
ruiganga
    Thread: Validation with variables
Post: RE: Validation with variables

This way doesn't work. Data is neve valid. Always that is NOT valid. $this->form_validation->set_rules($email , 'Users email', 'required|valid_email'); if ($this->form_validation->run()...
22,892 Views
11 Replies
04-04-2015, 04:31 PM
ruiganga
    Thread: Validation with variables
Post: RE: Validation with variables

silentium Wrote: (04-04-2015, 11:02 AM) -- Since you do a POST ajax call, the variables you send in that call will be available in the $_POST global. This means you can use the CodeIgniter form valid...
22,892 Views
11 Replies
04-04-2015, 04:30 PM
ruiganga
    Thread: Validation with variables
Post: RE: Validation with variables

The situation is this. An AJAX call sends an email using POST. I need to check if the email is valid. thats it. Because CI has the Validation Library my question is: is it possible to use that l...
22,892 Views
11 Replies
04-04-2015, 10:22 AM
ruiganga
    Thread: Validation with variables
Post: Validation with variables

Hi I am completely lost. I with to use CI Validation, but I am not using the Forms functionality. I just need to validate a variable, but I don't know how to do that using CI. I guess it is poss...
22,892 Views
11 Replies
04-04-2015, 10:11 AM
ruiganga
    Thread: DB Error Message
Post: DB Error Message

Hi In CI2 I used the following 2 lines to get the error message from the query: $this->db->_error_message(); $this->db->_error_number(); Now I am having an error: Call to undefined method...
6,949 Views
0 Replies
03-28-2015, 05:16 PM
ruiganga
    Thread: Codeigniter 3 Facebook Login Cache
Post: RE: Codeigniter 3 Facebook Login Cache

It looks like it is the browser that is caching the page. Any tip to prevent browser from caching dynamic pages?
4,181 Views
0 Replies
03-27-2015, 10:06 AM
ruiganga
    Thread: num_rows returning empty while result_array has results
Post: RE: num_rows returning empty while result_array ha...

Saying browser cache I mean browser data, cookies... May be Facebook is saving the first answer in a cookie and only when the cookie is deleted it works normally. May be... I only know that in CI2 thi...
21,351 Views
9 Replies
03-26-2015, 04:23 PM
ruiganga
    Thread: num_rows returning empty while result_array has results
Post: RE: num_rows returning empty while result_array ha...

I am not using Codeigniter Cache. Is the Cache used by default? I've realised that if I clear the browser cache and then try again it works normally. How can I prepare my app so this page is not ca...
21,351 Views
9 Replies
03-26-2015, 04:20 PM
ruiganga
    Thread: Codeigniter 3 Facebook Login Cache
Post: Codeigniter 3 Facebook Login Cache

Hi Since I am working with CI3 I noticed one weird situation with Facebook auth Login. this is the case: If I try to login using facebook, and accept the app in facebook, I receive the informati...
4,181 Views
0 Replies
03-26-2015, 04:05 PM
ruiganga
    Thread: num_rows returning empty while result_array has results
Post: RE: num_rows returning empty while result_array ha...

while I was testing my registration system, I've created a lot of entries in a database. then I deleted it but I still see all the rows in the query result. In other words. I am having a result dif...
21,351 Views
9 Replies
03-26-2015, 01:44 PM
ruiganga
    Thread: num_rows returning empty while result_array has results
Post: RE: num_rows returning empty while result_array ha...

Hi Thanks a lot!! mwhitney
21,351 Views
9 Replies
03-26-2015, 11:35 AM
ruiganga
    Thread: num_rows returning empty while result_array has results
Post: num_rows returning empty while result_array has re...

Hi I don't know if it is a bug or if I am doing something wrong. I am using CI3 RC3. While testing the code I've written originally for CI2 I've figured that $query -> num_rows was empty. The query...
21,351 Views
9 Replies
03-26-2015, 08:45 AM
ruiganga

Theme © iAndrew 2016 - Forum software by © MyBB