472,145 Members | 1,489 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

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 4484
*** 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
reply views Thread by Saiars | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.