Welcome Guest, Not a member yet? Register   Sign In
Search Results
  Photo Thread: Joining two tables
Post: Joining two tables

I have 2 tables that i want to join & show the name of user's role. here's the situation My 2 tables are users_mlh & user_roles_mlh on the role column of users_mlh table i'm storing the ID of us...
3,093 Views
2 Replies
10-24-2016, 11:39 AM
greenarrow
    Thread: Form field with dynamic id validation
Post: RE: Form field with dynamic id validation

ivantcholakov Wrote: (08-26-2016, 10:48 PM) -- You can check whether the request method is 'post'. If so, take the posted data into an array. Then scan the array for keys that begin with 'mechanic_'....
4,442 Views
5 Replies
08-26-2016, 10:59 PM
greenarrow
    Thread: Form field with dynamic id validation
Post: Form field with dynamic id validation

How can i validate fields with names like this Code: -- -- mechanic_ is the general field name &  134 is a id i am getting from database. there are more fields to come like mechanic_135.......
4,442 Views
5 Replies
08-26-2016, 10:00 PM
greenarrow
    Thread: email sending issue
Post: RE: email sending issue

PaulD Wrote: (08-19-2016, 09:39 PM) -- Well, that could be a multitude of reasons. Here are a few to check. 1. Are you actually getting an email address back from your model call? If not, then...
6,037 Views
8 Replies
08-19-2016, 09:47 PM
greenarrow
    Thread: email sending issue
Post: RE: email sending issue

PaulD Wrote: (08-19-2016, 12:45 PM) -- ? You do not need to echo it. This should work: PHP Code: -- $this->email->to($data['records']['email']); -- However, if you are getting errors what error a...
6,037 Views
8 Replies
08-19-2016, 09:05 PM
greenarrow
    Thread: email sending issue
Post: email sending issue

I want to echo an email address i am getting from  a model in controller, right now  here's how i'm doing it $data['records']['email'] but it won't allow me to echo it inside $this->email->to() ...
6,037 Views
8 Replies
08-19-2016, 11:36 AM
greenarrow
    Thread: Connecting two tables
Post: RE: Connecting two tables

Joel Catantan Wrote: (08-16-2016, 06:39 PM) -- I assume that the function in your post is withing your Model - I suggest that you must put a formatting of record within the controller. public func...
2,313 Views
2 Replies
08-16-2016, 09:16 PM
greenarrow
    Thread: Connecting two tables
Post: Connecting two tables

I have two tables like this 1.jobseets 2.jobsheet_tasks the table jobsheets stores some basic information like customer, date & the jobsheet_tasks only stores the tasks  related to each job s...
2,313 Views
2 Replies
08-16-2016, 01:35 PM
greenarrow
    Thread: Ajax validation issue with array
Post: Ajax validation issue with array

I am trying to validate my codeigniter based from using jquery ajax.  in my form i have dynamic fields which generates fields name like fault[0],fault[1],fault[2]......  this jquery script i am using ...
1,783 Views
1 Replies
08-14-2016, 12:08 PM
greenarrow
    Thread: Displaying error messages below the field
Post: RE: Displaying error messages below the field

InsiteFX Wrote: (08-10-2016, 03:29 AM) -- Your if statement is wrong see the CodeIgniter Users Guide - Input Library PHP Code: -- $this->input->is_ajax_request(); -- Also if you read the CodeIg...
6,976 Views
3 Replies
08-10-2016, 07:02 AM
greenarrow
    Thread: Displaying error messages below the field
Post: Displaying error messages below the field

I am using ajax to validate  a form with dynamic fields. this is how the errors being displayed now (all in one position). https://s9.postimg.org/ry147p6rj/Untitled.jpg JS file Code: -- ...
6,976 Views
3 Replies
08-10-2016, 02:47 AM
greenarrow
    Thread: dynamic input field array validation.
Post: RE: dynamic input field array validation.

cartalot Wrote: (08-09-2016, 06:41 PM) -- note the brackets after the field name value PHP Code: --        $formrules = array(            array(                'field' => 'fault[]',          ...
2,190 Views
2 Replies
08-10-2016, 02:39 AM
greenarrow
    Thread: dynamic input field array validation.
Post: dynamic input field array validation.

I have  dynamic input field like this PHP Code: -- -- this field can be increment like fault[1], fault[2], fault[3].......fault[10]  as many as the user willing to add the fields. how can i set...
2,190 Views
2 Replies
08-09-2016, 12:46 PM
greenarrow
    Thread: Dynamic input field saving
Post: RE: Dynamic input field saving

InsiteFX Wrote: (08-09-2016, 05:25 AM) -- Your missing the value field for one. Code: --   Add More -- -- I am sorry what do you mean friend?
11,550 Views
3 Replies
08-09-2016, 05:48 AM
greenarrow
    Thread: Dynamic input field saving
Post: Dynamic input field saving

Newbie yet & this is the first time i'm working with dynamic fields, please check this video first. http://www.screencast.com/t/Tl8jWxztdfG6 As i demonstrated i have this input field in my for...
11,550 Views
3 Replies
08-09-2016, 03:24 AM
greenarrow
    Thread: Form validation & view within a one function
Post: Form validation & view within a one function

Alright this question may sound silly & sorry for that as i am a  newbie to CI.  Here's my problem, right now to validate & show a form am i using 2 functions in one of my controllers. for examp...
1,566 Views
1 Replies
08-02-2016, 06:00 AM
greenarrow
    Thread: Array input validation help
Post: RE: Array input validation help

mwhitney Wrote: (07-28-2016, 01:27 PM) -- greenarrow Wrote: (07-28-2016, 11:31 AM) -- mwhitney Wrote: (07-28-2016, 10:42 AM) -- My first instinct would be that, if you're using AJAX to submit the f...
9,651 Views
10 Replies
07-29-2016, 02:26 AM
greenarrow
    Thread: Array input validation help
Post: RE: Array input validation help

any sugesstions
9,651 Views
10 Replies
07-28-2016, 11:19 PM
greenarrow
    Thread: Array input validation help
Post: RE: Array input validation help

PaulD Wrote: (07-28-2016, 12:03 PM) -- Hi, I think the way you are trying to do it is going to be difficult anyway, because if you want to show the individual form error messages you will have to ...
9,651 Views
10 Replies
07-28-2016, 12:30 PM
greenarrow
    Thread: Array input validation help
Post: RE: Array input validation help

mwhitney Wrote: (07-28-2016, 10:42 AM) -- My first instinct would be that, if you're using AJAX to submit the form anyway, why use an array for the field names? Just create a new form for each vehicl...
9,651 Views
10 Replies
07-28-2016, 11:31 AM
greenarrow

Theme © iAndrew 2016 - Forum software by © MyBB