# |
Sep 12th 2009, 09:54 |
savant |
Dimatter: how about you give me what you want it to look like if there is a new_count... |
# |
Sep 12th 2009, 09:54 |
Dimatter |
ohh ... hold up |
# |
Sep 12th 2009, 09:53 |
Dimatter |
savant: this is just weird http://pastie.org/614644 |
# |
Sep 12th 2009, 09:51 |
Rampage |
i've never seen something like this happen before in my life...the array keys turned into 0s. but the array values are still present |
# |
Sep 12th 2009, 09:51 |
savant |
thats not the same php version... |
# |
Sep 12th 2009, 09:50 |
Rampage |
linux: PHP Version 5.2.5 |
# |
Sep 12th 2009, 09:50 |
Rampage |
windows: PHP Version 5.2.9 |
# |
Sep 12th 2009, 09:49 |
Rampage |
the linux |
# |
Sep 12th 2009, 09:49 |
savant |
which server is messing up? |
# |
Sep 12th 2009, 09:49 |
Rampage |
one sec, i'll confirm |
# |
Sep 12th 2009, 09:49 |
dakota |
which version of php? |
# |
Sep 12th 2009, 09:49 |
Rampage |
one server on windows, the other on linux. both running php5 though. |
# |
Sep 12th 2009, 09:48 |
Rampage |
same php5. |
# |
Sep 12th 2009, 09:48 |
dakota |
Whats the difference between the two servers? |
# |
Sep 12th 2009, 09:48 |
savant |
version of php is different? |
# |
Sep 12th 2009, 09:48 |
Rampage |
here is the weird part. it works perfectly on one server. but the next server somehow turns the array into 0s. |
# |
Sep 12th 2009, 09:47 |
savant |
Rampage: your upload code? |
# |
Sep 12th 2009, 09:47 |
Rampage |
what can cause this :( |
# |
Sep 12th 2009, 09:47 |
Rampage |
hey guys, i'm facing a little weird problem! my add/edit has a file upload field. in this field it shows the proper input name: data[XYZ][blah], but after i submit the form, xyz turns into 0, blah turns into 0. |
# |
Sep 12th 2009, 09:46 |
Dimatter |
ACTION needs a sec |
# |
Sep 12th 2009, 09:45 |
jrod |
i think its just a matter of your syntax being slightly off |
# |
Sep 12th 2009, 09:45 |
savant |
depending on how you want the structure |
# |
Sep 12th 2009, 09:45 |
Dimatter |
jrod: yes, but i might have F'ed up with the syntax |
# |
Sep 12th 2009, 09:45 |
savant |
or the following: $category['categories']['new_count'] = array($cat_w_n[0]['new_count']); |
# |
Sep 12th 2009, 09:44 |
jrod |
Dimatter: have you tried array_push? |
# |
Sep 12th 2009, 09:44 |
savant |
does that work? |
# |
Sep 12th 2009, 09:44 |
savant |
? |
# |
Sep 12th 2009, 09:44 |
savant |
$category['categories']['new_count'] = $cat_w_n[0]['new_count']; |
# |
Sep 12th 2009, 09:43 |
Dimatter |
http://pastie.org/614644 look , it does add it but not the way i want it to |
# |
Sep 12th 2009, 09:42 |
Dimatter |
okay sec |
# |
Sep 12th 2009, 09:41 |
savant |
that should only output the ones that are messing up |
# |
Sep 12th 2009, 09:41 |
Dimatter |
http://pastie.org/614640 |
# |
Sep 12th 2009, 09:41 |
savant |
just place one at the end of line 15 and one at the end of line 16 :) |
# |
Sep 12th 2009, 09:41 |
savant |
where did you add the debug statements? |
# |
Sep 12th 2009, 09:40 |
savant |
those are two different arrays completely |
# |
Sep 12th 2009, 09:40 |
Dimatter |
i see it being added but ... |
# |
Sep 12th 2009, 09:40 |
Dimatter |
http://pastie.org/614639 |
# |
Sep 12th 2009, 09:38 |
Dimatter |
okay |
# |
Sep 12th 2009, 09:38 |
savant |
humor me |
# |
Sep 12th 2009, 09:38 |
Dimatter |
and it's the same before |
# |
Sep 12th 2009, 09:38 |
Dimatter |
that's after |