Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Carey Brown
  • Frits Walraven

How to display my shopping cart

Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I am trying to display a 2d session array that I use to store the shopping cart for my website. I think I created the 2d array correct then I try to display it and all I get is a white page.

Cart.php(Is to display my shopping cart)

(the pdo works I have used it on many other pages)

scriptcart.php(adds the data of the item clicked to session array)
Ranch Hand
Posts: 202
Android PHP Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your question unclear for me. Could you tell us what there is in your header.php?
Also top of page check session first.

if(session_status() == PHP_SESSION_NONE)
Oh. Hi guys! Look at this tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
    Bookmark Topic Watch Topic
  • New Topic