How can I populate a javascript array with values from a database using PHP?
<p>I have to create a javascript array whose elements are fetched by php from  a database. Is it possible? If so, how?</p>

<p><em>(I dont want to use ajax to do that)</em></p>
