Notice: Undefined offset: 24 in c:\inetpub\wwwroot\classes\file.php on line 348

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • google@deanrichardson.com

    #1

    Notice: Undefined offset: 24 in c:\inetpub\wwwroot\classes\file.php on line 348

    Hello,

    I'm having major problems trying to get my head round this problem.

    I'm trying to generate an error free script, however, I still cannot
    sort out this loop.

    I get a "Notice: Undefined offset: 24 in
    c:\inetpub\wwwr oot\classes\fil e.php on line 348"

    The source code for this is:

    for($i=0; $i < count($this->_title); $i++)
    {
    //line 348 below this one
    $resultrow[ $this->_title[$i] ] = $data[$i];

    }

    Is there anything im missing?

    Thanks in Advance,
    Dean.

  • Alvaro G Vicario

    #2
    Re: Notice: Undefined offset: 24 in c:\inetpub\wwwr oot\classes\fil e.php on line 348

    *** google@deanrich ardson.com wrote/escribió (21 Apr 2005 08:41:17 -0700):[color=blue]
    > I get a "Notice: Undefined offset: 24 in
    > c:\inetpub\wwwr oot\classes\fil e.php on line 348"[/color]
    [color=blue]
    > $resultrow[ $this->_title[$i] ] = $data[$i];[/color]

    Do $this->_title[24] and $data[24] really exist?

    Your script loops from 0 to max, but that doesn't imply all the
    intermediate values exist.

    --
    -- Álvaro G. Vicario - Burgos, Spain
    -- http://bits.demogracia.com - Mi sitio sobre programación web
    -- Don't e-mail me your questions, post them to the group
    --

    Comment

    Working...