4

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

Haren Sarma
  • 2,267
  • 6
  • 43
  • 72

2 Answers2

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));

See also Changing from mysql to mysqli code error

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