Reply to Re: many choices

Your name:

Reply:


Posted by Jerry Stuckle on 04/02/07 14:31

Bob Bedford wrote:
>> You're looking at a many-to-many relationship here - you have more than
>> one user, and more than one checkbox.
> Absolutely not...You message tell me I didn't explain very well, that's my
> fault sorry.
>
> I've a page where a user can choose what it does like (it's interest
> points).
> For example:
> soccer,
> football,
> baseball,
> tennis,
> rugby,
> swimming....
>
> So the user may choose none or many things he is interested in and I've to
> store in his profile.
> I don't know how to manage this. Every item has its own number but I don't
> know how to save in a mysql field (wich kind of field must I use) and also
> how to save from the form where the items are shown to the DB (the query).
> Also how to retrive those items back when the user want to edit his profile.
>
> Thanks for help
>
>
>

Yes, you have more than one user, and more than one selection. This is
a many-to-many relationship (many users, many selections). My comments
are correct.

Do some searches on "database normalization".

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[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

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