[PHP] Bit-flags in tables?

2001-07-11 Thread Lasse
Ok, after a lot of R'ing TFM, I'm more confused than I was before... Seems MySQL plays pretty loose with most datatypes and stores half the numeric types as strings, so I want e.g. a 16 bit field where I can use the individual bits for various flags. How should I set the MySQL datatype and

RE: [PHP] Bit-flags in tables?

2001-07-11 Thread Don Read
On 11-Jul-01 Lasse wrote: Ok, after a lot of R'ing TFM, I'm more confused than I was before... Seems MySQL plays pretty loose with most datatypes and stores half the numeric types as strings, so I want e.g. a 16 bit field where I can use the individual bits for various flags. How should