Quantity Not adjusting

前端 未结 2 1301
南旧
南旧 2020-12-12 08:14

I am trying to adjust the quantity of an item when a user enters the quantity and click on Update but I am having a problem getting it to work. When you end the quantity and

2条回答
  •  温柔的废话
    2020-12-12 08:43

    i don't see any

    session_start();

    In your PHP code, if you want to work with the session of the user, you must include session_start(); in the beginning of your php file.

    That includes ajax files.

    If you make an ajax call from a php page that has session_start, that DOES NOT MEAN that the ajax script will be "in session". You MUST include session_start(); in the ajax script.

提交回复
热议问题