I would like to call the php function db_name() with the js db variable. How can I switch to php into the js code?
You can't ... But you can make a javascript function doing what the php function db_name() does (using MYSQL_MAJOR_VERSION and MYSQL_MINOR_VERSION defined as javascript variables via php).
Alain.
_______________________________________________________