Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($_POST['action'] == 'show')
- {
- if(isset($_COOKIE["favorites"]))
- {
- $cookie_data = stripslashes($_COOKIE['favorites']);
- $cart_data = json_decode($cookie_data, true);
- //$item_id_list = array_column($cart_data, 'ID');
- foreach($cart_data as $keys => $values)
- {
- if($cart_data[$keys]["ID"] == $_POST["id"])
- {
- echo "true";
- } else {
- echo "false";
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement