NogDog wrote:unset($productTable[$key][$key2]);
Ok, now it throws me :
Warning: Illegal offset type in..
Here is how the registration of the session array is done (the $name is a single variable, the $fieldname and $fieldvalue are arrays):
$_SESSION['productTable'][] = array("Tablename"=>$name, "Subject"=>$fieldname,"Value"=>$fieldvalue;
Does it have something to do with the values attached to it?
Here is an example of a print_r() output:
Array
(
[0] => Array
(
[Tablename] => Test
[Subject] => Array
(
[0] => someValue
)
[Value] => Array
(
[0] => someOtherValue
)
)
[1] => Array
(
[Tablename] => Test 2
[Subject] => Array
(
[0] => some value
[1] => some value
)
[Value] => Array
(
[0] => some value
[1] => some value
)
)
strange..