Sry for my bad English.
I think you misunderstand something, in every programming language you need to make database request to get data out of your Database. In Javascript(This is what Construct generate) it?s not directly possible. You could only make an Ajax request to a PHP file which get you the data out of the database.
So the logic is:
1. Ajax Request on a Php file with some Parameters
2. Php file makes the database request and some magic stuff with the data
3. Ajax on complete, save the result in your global variables.
You need to understand that between Javascript and Php must be any connection, mostly is ajax used.
The other Problem is that Php is a server side language, it just makes something if you say "Hei Php go" and than it will execute your code one time, not more.
No other tool like Gamesalad, Gamemaker and so on can work with Php files without Ajax, Json and so on. Not even native code!