PHP array into Javascript Array

前端 未结 4 611
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-23 23:32

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

4条回答
  •  情深已故
    2021-01-24 00:17

    This can't work. Once the page is loaded, all the PHP has run already. But if you're really just adding the next mysql_result for each push, you could have PHP create the entire enableDays array for you:

    
    

提交回复
热议问题