I have been beating my brain in trying to figure how to convert this to mysqli.
die( mysql_error().'<br /><br />' . $query.'<br /><br />
I have tried putting the connection string between the parens, and that just isn't cutting it.
die( mysqli_error($GLOBALS['CONN']).'<br /><br />' . $query.'<br /><br />
I get
PHP Catchable fatal error: Object of class mysqli could not be converted to string.
I'm a PHP newb, and cannot figure what I am missing here.