Passing Php variables to a .js file
Posted: Fri Sep 24, 2010 7:11 pm
I have a php file with data from Mysql db. I need to pass the data to a .js file. I've looked at it and can't find a solution for it. I've looked at the following solutions:
* pass the variables with jQuery
* pass the data in a textfile and read it from the .js file
What is the best way to solve this problem?
I'm running on a local apache server, with Php and Mysql. Thnx!
* pass the variables with jQuery
* pass the data in a textfile and read it from the .js file
What is the best way to solve this problem?
I'm running on a local apache server, with Php and Mysql. Thnx!