CodeIgniter Forums
To do a query before inserting data in mySQL - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: To do a query before inserting data in mySQL (/showthread.php?tid=12844)

Pages: 1 2


To do a query before inserting data in mySQL - El Forum - 11-03-2008

[eluser]ambf[/eluser]
Hi Mike!

I'm using 1.7.0 too!


To do a query before inserting data in mySQL - El Forum - 11-03-2008

[eluser]lmv4321[/eluser]
You may be using 1.7.0, but form_validation is not being used by you. You are using the previous 1.6.3 version of validation ($this->load->library(‘validation’)Wink and not the newest 1.7.0 version ($this->load->library(‘form_validation’)Wink.

So, either change the line to this:
$this->validation->set_message(‘emailcheck’, ‘Email already registered’);

Or change all of your validation code to the newer form_validation code.


To do a query before inserting data in mySQL - El Forum - 11-03-2008

[eluser]ambf[/eluser]
Ohhhh!