>Here is a piece of my code...
>Could someone tell me what I did wrong? I get the following errors;
>
>Warning: Undefined offset: 1 in c:/www/htdocs/demos/download/inx_news.php on
>line 33
>Warning: Undefined offset: 1 in c:/www/htdocs/demos/download/inx_news.php on
>line 34 
>
>(obviously, the line numers will not be the same here)

Be nice if you told us which lines *where* 33 and 34 then...

Especially since I  don't think your posted code even includes those
lines... :-)

Basically, you are doing something like:

$foo[0] = 'test';
echo $foo[1];

Or, perhaps:

$foo = 't';
echo $foo[1];

In either case, the array/string has *NO* element at position 1, and you are
trying to do something with it.  Don't.

-- 
Like Music?  http://l-i-e.com/artists.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to