Jump to content

[SOLVED] How to use the binary field in a table


jordanwb

Recommended Posts

I have a settings table. In said table there will always be one row. I added a two bit Binary field to my table. When I went to edit the existing row, in the binary field (this is phpMyAdmin) it says "\0\0". Now I want 2 in the field so in binary that's 10, so I type 10, click Go, and it changes to \0\0, I edit the row again and type 2. Changes to \0\0 again. How do I put a value into a binary field?

Yeah but that page that was quoted didn't show me how to put a number into the field. All it showed me was how to do bitwise operations. Or maybe I missing something that I'm not seeing.

Bitmasks can be used to toggle bit fields.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.