2008年12月7日星期日

Re: [fw-db] MultiCheckBox Populate form, Insert/Update db how to?

Thanks guys.

@ Bart: Yes, i'd like to see a few examples. And yes can wait for your reply.

-R

On Mon, Dec 8, 2008 at 1:08 AM, Bart McLeod <mcleod@spaceweb.nl> wrote:
personally, I process the related records in a separte function, I have quite a few examples if you are interested, but will not have time before tomorrow,
Bart

Raavi Raaj schreef:
Hi,

I have three tables...
1. article
2. tags
3. article2tags".

The "article2tags" stores a a many-to-many relationship (made up of article_id and tag_id).

While creating/editing an article:
Need some direction/help/sample code to achieve...
1. Save the relationship to the article2tags table when creating a new article
2. Populate form with tags selected (check boxes) when editing the article
3. Insert/Update the "article2tags" on updating the article

All help is appreciated.

regards,
-R

P.S. My tables are MyISAM.


没有评论: