Jump to content

dsbpac

Members
  • Posts

    39
  • Joined

  • Last visited

Everything posted by dsbpac

  1. Can someone please help me!! How can I get the value in an link like <a href="#first">Link</a> I need to get first in an variable. I have search an search but I can't find any help. I know I can get it if i pass it in the URL name but the way the css is coded. I need to get the value like it is. Thank you.
  2. I have an array that has salary, position, and projected. $arr[] = array('salary' => $row["salary"], 'position' => $row["position"], 'projected' => $row["projected"]) Position = QB, RB, WR, TE, PK, DEF Salary = 7000, 8300, 5000 Projection = 10, 20, 30 I need help wrapping my head around how to do the following. I want the script to give me the most possible projected points based on a total salary number and limited to specific amount of players in each position. QB -1 RB - 2 WR - 3 TE - 1 PK - 1 DEF - 1 Max salary of 60k. Any help is greatly appreciated.
  3. I changed array1 to be more structured now. [0] => Array1 ( [0] => 32347 [1] => 22188 [2] => 37493 [3] => 37056) [1] => Array ( [0] => 8 [1] => 3 [2] => 4 [3] => 7)
  4. I actually did look in there. I already took several arrays and combined them into two seperate arrays. I'm pretty sure I need to do a nested foreach loop in order to do this. I just don't understand how to do it.
  5. I have two arrays that are listed like this. Array1 ( [0] => Array ( [32347] => 8 [22188] => 3 [37493] => 4 [37201] => 7 ) ) Array2 ( [0] => Array ( [0] => Array ( [0] => 32347 [1] => 28470 [2] => 35319 [3] => 37493 ) [1] => Array ( [0] => 5 [1] => 2 [2] => [3] => 4 ) [2] => Array ( [0] => 484 [1] => 383 [2] => 315 [3] => 320 ) ) ) I want to combine both arrays if value is the same. Example [32347] => 8 => 5 => 484 Thank you in advance.
×
×
  • 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.