Populating lalo Jul 11 '18 at 15:19

  • 1
    :) Look at your [browser devtools](https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_are_browser_developer_tools), the console, the network tab, look for errors in either. Check the raw response from the ajax call in the network tab. – IncredibleHat Jul 11 '18 at 15:24
  • 1
    Also, in your `ajax.php` ... do you have all the needed `require` in place for your database? Your question just has a portion shown, so I just want to make sure. – IncredibleHat Jul 11 '18 at 15:30
  • Arrrggg ajax.php had no require_one you're right :( on devtools I see ReferenceError: $ is not defined but have no idea what it means , maybe I inserted the script in the wrong way? – lalo Jul 11 '18 at 15:51
  • `ReferenceError: $ is not defined ` means you are not including jquery anywhere before your javascript block. – IncredibleHat Jul 11 '18 at 15:53
  • omg so I'm so bad with javascript, jquery included, but how can I get datasy(that is inside ajax.php) array in maga_scarica.php to printout with a foreach with all options? – lalo Jul 11 '18 at 16:17
  • Eliminating the errors from your code (missing require_once, extra quotes around POST arg, missing jquery lib include)... then it should be working as you presented. Theres not much more for me to offer. That code should work as expected (granted you fixed those errors). – IncredibleHat Jul 11 '18 at 16:49
  • 0 Answers0