Skip to content

Instantly share code, notes, and snippets.

@enygma
Created July 18, 2017 14:44
Show Gist options
  • Save enygma/b468bf993f42b147852f2b2af053de04 to your computer and use it in GitHub Desktop.
Save enygma/b468bf993f42b147852f2b2af053de04 to your computer and use it in GitHub Desktop.
item count
$itemId = $id.$_GET['SN'];
if (isset($_SESSION['productsR'][$itemId]) {
$itemCount = $_SESSION['productsR'][$itemId] + 1;
} else {
$itemCount = $_SESSION['productsR'][$itemId] = 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment