what's with this number string?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

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.
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Glad you fixed your problem. Sorry I wasn't addressing that directly but I thought there were other, more important things to look at.
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.
OK, but lines like this:

Code: Select all

<?php
elseif($fal==$pmember){ # resticted to paying members 
?>
..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.
?>
Post Reply