Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: To those array experts
Post: RE: To those array experts

thanks to all! I had been making way too complicated.. this woirked Code: -- if ($this->form_validation->run() == FALSE) { // Bill Not Created }else {    $data['dates'] = array();   ...
12,583 Views
12 Replies
08-26-2015, 11:17 PM
scoobie
    Thread: To those array experts
Post: RE: To those array experts

I am studying your responses - had a complete 10 ay where electricity out at house then yesterday was out all day, so absolutely not ignoring your input - Thanks and thanks for taking time to let me k...
12,583 Views
12 Replies
08-26-2015, 03:46 PM
scoobie
    Thread: To those array experts
Post: RE: To those array experts

So it's almost working. I used Code: -- for($i = 0; $i < $totalElements; $i++) { $job_date = $job_dates[$i]; //2015-08-05 6 2015-08-07 8 $cust = $customer_ids[$i]; $items = new Customer()...
12,583 Views
12 Replies
08-24-2015, 02:03 AM
scoobie
    Thread: To those array experts
Post: RE: To those array experts

I put another for loop around the above for($i = 0; $i < $totalElements; $i++) {   echo $i;   print_r($data['dates2'][$i] ); and i get A PHP Error was encountered Severity: Notice Messag...
12,583 Views
12 Replies
08-23-2015, 04:20 PM
scoobie
    Thread: To those array experts
Post: RE: To those array experts

I am needing to get both entris ftom the array so instead of just 5 August 2015 3 Aireys Street 2 hour/s $37/hr $74 I need 4 August 2015   48 Taroona Road          3 hour/s     $45/hr      $...
12,583 Views
12 Replies
08-23-2015, 06:01 AM
scoobie
    Thread: To those array experts
Post: To those array experts

I can see the values in the array, but i cant get access to them - Help!! I am writing the following code in codeigniter Code: -- if ($this->form_validation->run() == FALSE) { // Bill Not...
12,583 Views
12 Replies
08-22-2015, 11:47 PM
scoobie
    Thread: changing a found function or combining arrays
Post: RE: changing a found function or combining arrays

Yes, thanks so much! It works perfectly.
3,237 Views
2 Replies
07-13-2015, 03:55 PM
scoobie
    Thread: changing a found function or combining arrays
Post: changing a found function or combining arrays

I found a function on google (that worx well), but i'm not good enough to change it so that it does something  slightly different Code: --                     $data['total_summed'] = array_reduce(...
3,237 Views
2 Replies
07-12-2015, 04:32 PM
scoobie
    Thread: Losing $_SESSION and $_POST variables
Post: Losing $_SESSION and $_POST variables

This isn’t making any sense to me ? I have session_start(); in index.php at C:\xampp\htdocs and I know it’s being called every time a new php file is called as there’s always an error of Notice: A s...
3,567 Views
1 Replies
07-11-2015, 07:24 PM
scoobie
    Thread: Only the last entry in the array is saving to the database?
Post: RE: Only the last entry in the array is saving to ...

you're a genius!!! thank you sooo much!!
3,884 Views
2 Replies
07-03-2015, 04:26 PM
scoobie
    Thread: Only the last entry in the array is saving to the database?
Post: Only the last entry in the array is saving to the ...

In my model I have an array being sent from the controller and I want all entries in the array to save to the db but only the last one is. My code in the controller is Code: -- if($extra_items...
3,884 Views
2 Replies
07-01-2015, 08:16 PM
scoobie
    Thread: controller and view not working correctly
Post: RE: controller and view not working correctly

This is how i got it working for anyone who may be interested... $cluster_task_id_count = array_count_values($cluster_task_ids); $dates = new List_item(); ...
3,984 Views
3 Replies
06-18-2015, 04:31 AM
scoobie
    Thread: controller and view not working correctly
Post: RE: controller and view not working correctly

I have redefined some of the above code so it now reads $data['dates'][$date->id] = array('ctask_id' => $date->cluster_task_id,'item_date' => $date->item_date, 'cluster_tasks' => array()); and pr...
3,984 Views
3 Replies
06-17-2015, 06:34 PM
scoobie
    Thread: controller and view not working correctly
Post: controller and view not working correctly

I have a question about CodeIgniter and how to get some information from some tables using a controller and then have it displayed in a view I have it working using 6 tables, but I've changed the l...
3,984 Views
3 Replies
06-16-2015, 05:21 PM
scoobie

Theme © iAndrew 2016 - Forum software by © MyBB