note 41559 deleted from language.operators.bitwise by danielc

From: Date: Mon, 13 Apr 2009 16:14:22 +0000
Subject: note 41559 deleted from language.operators.bitwise by danielc
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-153171@lists.php.net to get a copy of this message
Note Submitter: rdewaard at DONTSPAMME dot xs4all dot nl Reason: 2 ---- @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.

« previous php.notes (#153171) next »