-3
I have the following question how can I enter code php
within the javascript
, that is to say I have a chart made in JS
and I want the same to be based on data from my database, how to put the php
within the js
or I have to get the information from the database from the JS?
For example at the bottom I have the part of the code where you want to fill in the points on the Y axis and I want to fill in instead of having value with values from the database I have already performed the select but how do I put instead of values a while cycle that travels through an Ada table database and enter values.
date: [1,5000,15000,18394,18287,28682,31274,33259,25849,24159,32651,31984,38451]
your question is confused, please edit it and insert snippets of code so we can analyze and help you, see how to ask a good question here.
– WMomesso
I found your question confusing. Your problem is to have Javascript download data that is given by PHP and with that to plot?
– Victor Stafusa