Jump to content

smith.james0

Members
  • Posts

    124
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

smith.james0's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. Hi, The arrays come from three sql queries. I have already combined two which output to a graph to show temperature over a 24 hour period, now I have added another temperature probe and I want to add the third array to the existing one. I don't know a way of querying the db to produce a array like this Array ( [0] => Array ( [0] => 6 (Hour from db) [1] => 12.25000000000000 (Temp probe 1) [2] => 14.50000000000000 (Temp probe 2) [3] => 11.00000000000000 (Temp probe 3) ) etc etc.. Regards
  2. Hi, It's been a few years since i've done any php coding and it seams like I have forgotten how to combine 2 arrays! I am trying to combine This .... Array ( [0] => Array ( [0] => 6 [1] => 12.25000000000000 [2] => 14.50000000000000 ) [1] => Array ( [0] => 7 [1] => 12.43700000000000 [2] => 13.12500000000000 ) } etc, etc and this .... Array ( [6] => 11.00000000000000 [7] => 11.31200000000000 [17] => 14.18700000000000 } etc etc to make ... Array ( [0] => Array ( [0] => 6 [1] => 12.25000000000000 [2] => 14.50000000000000 [3] => 11.00000000000000 ) [1] => Array ( [0] => 7 [1] => 12.43700000000000 [2] => 13.12500000000000 [3] => 11.31200000000000 ) [2] => Array ( [0] => 17 [1] => 16.12500000000000 [2] => 15.75000000000000 [3] => 14.18700000000000 ) } I've tried $out2 = array(); foreach ($out as $value){ $out2[] = array_merge($value, array($water[$key])); } but this seams to alter the value of the combined array value in the 3rd key. Can anyone point to what I have done wrong? Regards
  3. I have made a website which lists details on suppliers, shops, clubs etc which are useful for beekeepers. I would appreciate any feedback http://www.beekeepinglinks.co.uk James
  4. I have a column (varchar) full of values of money. I need to put the in order of value but it doesn't work with type set to varchar, what type do i need? Can some help. Thanks James
×
×
  • 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.