How to pass the value of an ID to a PHP variable

0

asked by Yerlin Mayz 03.12.2018 в 17:52
source

2 answers

0

Welcome (to) Yerlin, I recommend you not to use images and place the code, this for better understanding and ease of help, since you would have to transcribe the code.

    
answered by 03.12.2018 в 17:56
0

In principle, the ajax seems correct. I suggest you start using witnesses. I explain. Open the browser inspector (I suggest chrome) and go to the network tab. To load coolers, put a line that makes you a var_dump ($ _ POST). In the inspector, you will see if the id value is coming or not. If it arrives, put an echo of the query and a var_dump of the result. Everything that happens, you will see in the inspector. It has helped me many times. I hope it serves you.

    
answered by 03.12.2018 в 18:21