469,287 Members | 2,453 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,287 developers. It's quick & easy.

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\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.

Jul 17 '05 #1
1 4348
*** go****@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
--
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Richard Lawrence | last post: by
3 posts views Thread by number1yan | last post: by
2 posts views Thread by Reggie | last post: by
5 posts views Thread by Pseudonyme | last post: by
2 posts views Thread by Smellydog | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.