fetch_array($rel)) { foreach ($row as $key => $value) { $uinfo[$key] = $v"/> fetch_array($rel)) { foreach ($row as $key => $value) { $uinfo[$key] = $v">
php
PHP中include后,部分函数中需要global部分变量,例如下面global $db;问,如果不用global,怎么完美解决
/*
uid
='" . $uid . "'");while ($row = $db->fetch_array($rel)) { foreach ($row as $key => $value) { $uinfo[$key] = $value; }}$ushell = md5($uinfo['password'] . $uinfo['role'] . DSLOG_ENC);if ($ushell == $_SESSION['shell']) { return true;} else { return false;}}?>