class FUNC {
var $AdminInfo = array();
var $output = "";
var
$AccessGranted = true;
function FUNC() {
global $mid,
$session, $act;
$GetPerms = mysql_query("SELECT
ap.mbr_id, ap.perms, p.id as perm_ids, p.pages, m.id, m.mbr_group FROM
admin_perms ap, admin_permissions p, members m WHERE ap.mbr_id = '$mid'
&& (m.mbr_group = 1 || m.mbr_group = 12 || m.mbr_group = 6 ||
m.mbr_group = 7) && m.id = '$mid'")or
die(mysql_error());
while ($row =
mysql_fetch_assoc($GetPerms))
{
$Perms =
substr($row['perms'], 0, -1); // Knock off the last comma so we don't have a 0
in our array
$Perms = split(",",
$Perms);
if (@in_array($row['perm_ids'], $Perms))
{
$AccessPages .= $row['pages'];
}
if
(@in_array(0, $Perms))
{
$AccessPages =
"All";
}
From Looking at that I can tell there is 2 tables one called admin_perms and one called admi_permission. Can I get help in taking that information and making it in to a SQL query
thanks
