Ok, I am beating my head on my PC…. I do not know what is going on. I’m using PHP to make a soap call to a remote database… I am running 4 queries, merging two multidimensional arrays and returning them.
The array looks clean, but when I display the results, they are repeating.
Here is one example after call:
$row = $response;
$count = count($row);
for($i=0;$i<=$count-1;$i++){
$product = $row[$i]['Product'];
$color = $row[$i]['Color'];
$type = $row[$i]['Type'];
$length = $row[$i]['Length'];
$render = '<li><div id="somediv">strong>' . $product . '</strong><br />Color: ' . $color . '<br />' . ‘ Size: ' . $length . '<input type="button" value="value" onclick="someaction(' . $i . ')" />' . '</div></li>';
}
Here is a repeated problem from the array returned :
[11] => Array (
[Product] => Some Product
[Color] => Some Color
[Type] => C
[Length] => 150
)
However the it repeats the same occurrence.. it only does this with a handful of products:
Some Product
Color: some color
Size: 150
Price: 4.79
</li>
Some Product
Color: some color
Size: 150
Price: 4.79
</li>
Some Product
Color: some color
Size: 150
Price: 4.79
</li>
Some Product
Color: some color
Size: 150
Price: 4.79
</li>