View Single Post
Old 02-26-2008, 02:24 PM   #1 (permalink)
CoryMathews
The Addict
 
CoryMathews's Avatar
 
Join Date: Nov 2007
Location: USA
Posts: 256
Thanks: 7
CoryMathews is on a distinguished road
Default Problem with Arrays

Im having a small problem with arrays, this code used to work, but now i get something like

Code:
Notice: Undefined offset: 1 on line 69

Notice: Undefined offset: 2 on line 77

Notice: Undefined offset: 3 on line 85
you can view the errors here

Heres the code, in short it gets the categories from the db, and splits them into 4 columns. Im pretty sure the error is because im trying to pull from an empty array. The errors only occur when the amount of categories are not directly divisable by 4.

Last edited by CoryMathews : 02-27-2008 at 02:05 PM.
CoryMathews is offline  
Reply With Quote