Welcome Guest, Not a member yet? Register   Sign In
Undefined Index
#3

(This post was last modified: 05-13-2017, 03:47 PM by PaulD.)

The way I would debug an undefined index, if it was not immediately obvious from inspection of the code, would be to do some testing on the function alone. So firstly output the array you are looping through and check it has the data in it you expected. Then remove the loop functionality and add in some testing lines to output the index you are looking for within your data set. Usually these things show the problem quite clearly. You should then easily be able to see where in the loop you are looking for an index that does not exist.
Reply


Messages In This Thread
Undefined Index - by cupboy1 - 05-13-2017, 01:20 PM
RE: Undefined Index - by InsiteFX - 05-13-2017, 02:19 PM
RE: Undefined Index - by PaulD - 05-13-2017, 03:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB