Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is $GLOBALS["___mysqli_ston"] in mysqli

Tags:

php

mysqli

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

like image 454
Haren Sarma Avatar asked Dec 15 '22 17:12

Haren Sarma


1 Answers

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

like image 65
user1043568 Avatar answered Dec 30 '22 02:12

user1043568