You are here: Re: CMS - Admin Controls « PHP Programming Language « IT news, forums, messages
Re: CMS - Admin Controls

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация