actually all access codes and groups are in one file that used as an include. if i want to add another access level i change one file.
also using the sql UNIX_TIMESTAMP was able to fix it.
what's with this number string?
Moderator: General Moderators
Glad you fixed your problem. Sorry I wasn't addressing that directly but I thought there were other, more important things to look at.
..assign individual privileges in php scripts (ie the "view" privilege for this type of item). Hence the code is being used to describe part of the data model - personally I'd do that in the database.
In the same way that it's best to keep html tags out of scripts, I think it's best to separate out the data model into the db.
?>
OK, but lines like this:m3rajk wrote:actually all access codes and groups are in one file that used as an include. if i want to add another access level i change one file.
Code: Select all
<?php
elseif($fal==$pmember){ # resticted to paying members
?>In the same way that it's best to keep html tags out of scripts, I think it's best to separate out the data model into the db.
?>