Afternoon all. The code below works perfectly, however, I need to pull each row of the php sql array out and into the script var. Any ideas on how to write a while loop that cou
You can get the rows using mysqli_fetch_assoc and then encode it to JSON:
mysqli_fetch_assoc
var enableDays = ;