Array Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mtek

    Array Question

    Hi,

    I posted a question eariler, but am still having issues.

    I have this line in my code

    $timing[$x]['Count']++;

    I am getting this error:

    PHP Notice: Undefined index: Count in /prod/scripts/test/
    customerinfo.ph p on line 93

    Any ideas? I thought this should work.......

    $x is a loop array......: for ($x=1; $x <= $intable_count; $x++)

    Thank you,

    John
  • Paul Lautman

    #2
    Re: Array Question

    Mtek wrote:
    Hi,
    >
    I posted a question eariler, but am still having issues.
    >
    I have this line in my code
    >
    $timing[$x]['Count']++;
    >
    I am getting this error:
    >
    PHP Notice: Undefined index: Count in /prod/scripts/test/
    customerinfo.ph p on line 93
    >
    Any ideas? I thought this should work.......
    >
    $x is a loop array......: for ($x=1; $x <= $intable_count; $x++)
    >
    Thank you,
    >
    John
    Do you have an earlier line in yor code where you actually define
    $timing[$x]['Count'] ?

    I think it might be better if you told us what you want to achieve at the
    end of this so that we can advise you on the best way to do this with php. I
    have the feeling that you are trying to do something that should be very
    easy, but are choosing a very hard way to accomplish it.


    Comment

    Working...