SitePoint Sponsor

User Tag List

Results 1 to 12 of 12

Threaded View

  1. #1
    SitePoint Evangelist jazztie's Avatar
    Join Date
    Mar 2001
    the Netherlands
    0 Post(s)
    0 Thread(s)
    I have a new marvelous problem.

    I have two tables

    rubrieken (id, title) and
    pages (id, txt, rubrieken)
    pages.rubrieken is a foreign key to

    Now the fun part starts...
    pages.rubrieken can have zero, one or more rubrieken.
    for instance; '1,23,48' (this also the way it is stored in the database)

    Now, when I delete an entry in table rubrieken
    ("DELETE FROM rubrieken WHERE id='$id'")
    I also want that particular removed from pages.rubrieken. But only that particular one... not the others.

    so for instance... when I remove '23' the pages.rubrieken would read; '1,48'

    Could someone help me with this problem? I don't know how to tackle this problem...
    Last edited by jazztie; May 18, 2001 at 03:53.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts