Jump to content

fmpros

Members
  • Posts

    27
  • Joined

  • Last visited

Everything posted by fmpros

  1. This worked! I very much appreciate your time and assistance! Thanks again!
  2. This is a huge help. Thank you! I'm going to give this a shot and will report back with my findings.
  3. I think you're right...calling $request[0], etc, makes more sense. I'm new to arrays and having them nested is throwing me off. Do you have a snippet or example you could show me by chance? Not sure how to translate what I have into the proper format. Thanks!!!!
  4. Good Afternoon! I would really appreciate some help with this array issue. This code works when I statically assign the $query array values as shown below. Requests however, can vary in quantity, so I need the $query array values to be dynamic. Can someone more experienced than myself help me solve the issue? $n = 0; foreach($complete_req as $myItem ){ ${'request' . $n }['_kf_personnel'] = $_POST['uid']; ${'request' . $n }['_kf_requirementP'] = $complete_req[$n]; #${'request' . $n }['request'] = 'request'.$n; #$set .= '$request'.$n.', ' ; $n = $n + 1; } $query = array ($request0, $request1 , $request2); //Statically assigned array values but needs to be dynamic
×
×
  • 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.