note 41559 added to language.operators.bitwise
| From: | rdewaard at DONTSPAMME dot xs4all dot nl | Date: | Wed, 14 Apr 2004 16:36:57 +0000 |
| Subject: | note 41559 added to language.operators.bitwise | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-68127@lists.php.net to get a copy of this message | ||
@jbrand1 at uwe_emm_bee_see dot edu:
"I have to be careful when I add roles so that it's 2^whatever. I wish I knew how to
change the auto_increment so that it was just a bit shift."
If you store your roles in MySQL you might consider NOT using a table 'roles' but adding a
field 'roles' to the table 'user' using the datatype SET for that field. The
name for each role will have a decimal value 2^whatever! See http://www.vbmysql.com/articles/mysqlsetdatatype.html
for details and ideas.
----
Manual Page -- http://www.php.net/manual/en/language.operators.bitwise.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41559
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41559&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41559&report=yes
Search -- http://master.php.net/manage/user-notes.php