is it possible to access the global variables ([sc_glo_server],[sc_glo_user],[sc_glo_pass],[sc_glo_db]) from an external library ?
external library code:
function mysqli($query){
$mysqli = mysqli_connect([sc_glo_server], [sc_glo_user], sc_decode([sc_glo_pass]), [sc_glo_db]) or die(‘Unable to Connect’);
if ($mysqli->connect_error) {
die(‘Error : (’ . $mysqli->connect_errno . ') ’ . $mysqli->connect_error);
}
$fetch1 = $mysqli->query($query) or trigger_error($mysqli->error);
$rows1 = array();
while ($r = mysqli_fetch_assoc($fetch1)) {
$rows1[] = $r;
}
return $rows1;
}