Jump to content

dmikester1

Members
  • Posts

    107
  • Joined

  • Last visited

Everything posted by dmikester1

  1. Thank you. I changed the way I was inserting in the array. I knew there had to be an easier way than what I was doing, but was having a brain fart or something. Thanks!
  2. I'm having some troubles with this one. I set up my array like so: $POs[] = array( $jobID=>array( 'FSME' => $matTotal, 'FSMC' => $matTotal, 'FSDE' => $draftingTotal, ... And say $jobID is equal to 312. Now I am trying to access one of those values. I tried: $POs[$jobID]['FSME'] with $jobID being 312. Then I get "Notice: Undefined offset: 312 in..." Any ideas how I can access this variable? Thanks Mike
  3. I can't figure out how to remove a specific item from my array by key. Array: $uncachedSites = array(2=>'site 1', 3=>'site 2', 4=>'site 3', 5=>'site 4'); So I'm running through a loop with $i starting at 2 and going up to 5. If I say unset($uncachedSites[$i], the first time around I'm thinking it will remove 'site 3' instead of 'site 1' like I want it to. But I can't figure out how to remove the first one without just saying unset($uncachedSites[0]) Thanks Mike
  4. Well, the second argument passed to array_map needs to be an array and that long id number is obviously not an array.
  5. It appears that argument 2 of array_map is not an array. When you do this: "print_r ($_POST['need_delete']);", what do you get?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.