I am trying to use mysqli first time. I have a question, what is $GLOBALS["___mysqli_ston"] ? Can you plz tell me. I am not getting any direct answer when googling
Asked
Active
Viewed 9,470 times
4
-
It's the same as `$___mysqli_ston` in the global scope. – naththedeveloper Jan 15 '15 at 09:27
2 Answers
9
MySQLConverter assumes that this global variable is set to equal your DB connection object; if the converter finds a mysql_connect it will (partially, but with a warning) convert your code into code that includes an assignment of $GLOBALS["___mysqli_ston"] to the result of the mysqli_connect function something like this:
$link=($GLOBALS["___mysqli_ston"] = mysqli_connect($hostname, $username, $pwd));

Dharman
- 30,962
- 25
- 85
- 135

user1043568
- 91
- 1
- 2
3
Just a custom global variable.
See. http://php.net/manual/en/reserved.variables.globals.php

Stefan
- 66
- 6