|
Posted by punkstar on 09/06/05 20:25
admin variables?
why dont you use a table like ipb, i think it is, use. This being a
config table with the column names "config_name" and "config_value".
You can then use one query to pull out all the information.. then:
$sql = "SELECT * FROM `config`";
$dosql = mysql_query($sql,$connect);
while($item = mysql_fetch_assoc($dosql))
{
$config[$item['config_name']] = $item['config_value'];
}
...and then you have all of your config values?
You could even set access levels for all of your admins, to only pull
the variables that they are allowed to access by adding an
"access_level" to the table and changing the sql to "SELECT * FROM
`config` WHERE `access_level` <= '".$my_access_level."'";
How would 100 users be in the admin area? If thats what you meant by
the 3 more queries..
Navigation:
[Reply to this message]
|