Reply to php + mysql: binary arrays

Your name:

Reply:


Posted by Robert S on 03/29/05 13:35

I am writing a contact manager in php/mysql. I'd like to use a binary array
as an efficient way to store information for groups that each contact
belongs to eg:

Field: 'group': 001010 means that the contact belongs to the second and
fourth group.

If the array is of type Byte, it should be able to store information about
255 groups.

Is php/mysql able to handle this? My specific questions are:

What functions set/clear a bit in an array in php?
How do you query whether a bit is set in mysql?

I hope I've made this clear enough to be followed - I'm not a pro!

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация