View Single Post
 
Old January 13th, 2004, 04:16 PM
richard.york's Avatar
richard.york richard.york is offline
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Well your program is complaining that that array indice doesn't exist.

Undefined offset will mean that a numeric based array indice isn't set at the time of use.

So echo the value of
echo $Id[$i];

Then look elsewhere in your script to be sure that $id[$i+1]; exists. If these are built using loops, does that loop iterate 1293 times?

If you need to detect whether a variable exists, or whether it contains a value look at isset and empty.

http://www.php.net/isset
http://www.php.net/empty

: )
Rich

:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::