Hi Guys,
I have a small issue with the unset of a multidimensional array.
$bob = array(
array('quantity' => 2, 'product' => 302),
array('quantity' => 1, 'product' => 202),
array('quantity' => 1, 'product' => 134),)
I have no problem with displaying the elements of ech value within $bob with the "for each". I have a form button created with each element in order to delete/unset that particualr array in $bob.
When the delete button is pressed I can't seem to be able to correctly identify $bob[????] to delete. Which results in the incorrect array being deleted within $bob.
Is there a fool proof way of identifying the $bob[number] when looping through the array?? Can you use the 'product' value to identify the correct array??
Cheers for your help