relating to implementation of What are best practices for multi-language database design?
how can I declare something similar to static variable that describes language in that session
now I use a static and globally variable/Session in PHP and concatenation of it to the query string.
MySQL supports a local, session and global variables. You want to use session.
To set a session variable, simply:
All session variables are prefixed with a ‘@’.
Session variables goes out of scope when the connection is terminated.
In your case, you will still need to
ANDyour queries, like:You cannot automatically do this.
More info in the documentation.