when I run this code I get Notice: Undefined offset: 3 On line 12 and 18. 12 and 18 with in front.
$_SESSION['basket'][3];
if(isset($_GET['action']) && $_GET['action'] == "add")
{
if(isset($_GET['product_id']))
{
**$_SESSION['basket'][3] += 4;**
}
else
{
$_SESSION['basket'][3] += 1;
}
}