PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I think it has something to do with my loop but I can't figure it out. Here is my output.
1 1 Walkways Walkways Stone Stone VA VA Loudoun County Loudoun County Ashburn Ashburn Concrete Concrete Pine Hall Pine Hall Full Range Full Range Running Bond Running Bond
Array
(
[0] => 1
[ImgID] => 1
[1] => Walkways
[ImgType] => Walkways
[2] => Stone
[ImgCat] => Stone
[3] => VA
[State] => VA
[4] => Loudoun County
[County] => Loudoun County
[5] => Ashburn
[City] => Ashburn
[6] => Concrete
[Base] => Concrete
[7] => Pine Hall
[Pavor] => Pine Hall
[8] => Full Range
[Color] => Full Range
[9] => Running Bond
[Pattern] => Running Bond
)
It looks like you are receiving the result array indexed by numeral and key. Fetching the associative values only should ensure your array only holds one copy of the values needed. Your array (try var_dump() ) may look like: