Let's say you have a Javascript function like this :
function foo(param1,param2)
{
//some code here
}
param1 and param2 are stored in myDatabase.
It's my page.php that requests myDatabase to extract param1 and param2, then it stores them as PHP variables $param1 and $param2.
How to convert $param1 and $param2 from PHP to Javascript so i can call my function.
<div onClick="foo(param1,param2)"></div>