Why??
switch ($action) {
case 'mail':
if ($post) {
$_SESSION['post'] = $_REQUEST['post'];
} else {
$_SESSION['post'] = $_REQUEST['post'];
}
break;
case 'update':
$GName = $_GET['Name'];
$cart = $_SESSION['cart'];
foreach ($cart as $row) {
if($row['Name'] == $GName){
$Qnty = $_GET['Qnty'];
if ($Qnty == 'Min') {
$Qnty = $row['Qnty'] - 1;
} else {
$Qnty = $row['Qnty'] + 1;
}
//$_SESSION['cart'][] = array('Name' => $row['Name'], 'Qnty' => $row['Qnty'], 'Size' => $row['Size'], 'Color' => $row['Color'], 'NZD' => $row['NZD']);
}
}
break
}
Parse error: syntax error, unexpected '}' in /home/mysite/public_html/me/new/functions/cartview.php on line 28
Line 28 is the last }