This is a discussion on Notice: Undefined offset: 24 in c:\inetpub\wwwroot\classes\file.php on line 348 within the PHP Language forums, part of the PHP Programming Forums category; Hello, I'm having major problems trying to get my head round this problem. I'm trying to generate an ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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\wwwroot\classes\file.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. |
|
|||
|
*** google@deanrichardson.com wrote/escribió (21 Apr 2005 08:41:17 -0700):
> I get a "Notice: Undefined offset: 24 in > c:\inetpub\wwwroot\classes\file.php on line 348" > $resultrow[ $this->_title[$i] ] = $data[$i]; 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 -- |