Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Can I convert empty strings to NULL with a Codeigniter validation rule?
Post: RE: Can I convert empty strings to NULL with a Cod...

dave friend Wrote: (02-28-2019, 12:25 PM) -- That sounds like a good approach. I'd like to see the implementation. -- I did it and it’s working fine, with strings, and also with numeric values.  H...
6,918 Views
7 Replies
02-28-2019, 12:45 PM
b126
    Thread: Can I convert empty strings to NULL with a Codeigniter validation rule?
Post: RE: Can I convert empty strings to NULL with a Cod...

At the end I think that I will override the post() method of the CI_Input core class instead. Quicker and easier than everything else. Just one line of code to add.
6,918 Views
7 Replies
02-27-2019, 04:11 PM
b126
    Thread: Can I convert empty strings to NULL with a Codeigniter validation rule?
Post: RE: Can I convert empty strings to NULL with a Cod...

php_rocs Wrote: (02-27-2019, 01:10 PM) -- @b126, You should be able to use a PHP function such as isset() (scroll down page to See Also for other suggestions- http://php.net/manual/en/function.iss...
6,918 Views
7 Replies
02-27-2019, 01:30 PM
b126
    Thread: How often do you use the backup() method of the database drivers?
Post: RE: How often do you use the backup() method of th...

Never used this feature as we are working in a professional environment with our own servers.
30,243 Views
35 Replies
02-27-2019, 09:11 AM
b126
    Thread: Can I convert empty strings to NULL with a Codeigniter validation rule?
Post: Can I convert empty strings to NULL with a Codeign...

I would like to convert all my POST values from '' to NULL automatically with a Codeigniter validation rule. Is it possible? Here is my helper, which is working fine with text and numbers : PHP C...
6,918 Views
7 Replies
02-27-2019, 08:40 AM
b126
    Thread: Use anything as a rule and $this->some_model issue
Post: RE: Use anything as a rule and $this->some_model i...

How do you proceed if you have to send two parameters to your callable? I am trying since hours and I don't get any solution, since I need to compare two dates (start
4,343 Views
8 Replies
02-21-2019, 04:02 AM
b126
    Thread: Validation callback function in Model with several parameters
Post: Validation callback function in Model with several...

Dear all, I am trying to use a custom validation callback function, from a model (not from the controller, as I am trying to keep them slim), and this function takes two parameters. As described...
3,149 Views
1 Replies
02-21-2019, 02:49 AM
b126

Theme © iAndrew 2016 - Forum software by © MyBB