Get more than 1 data entry from DB using PHP

Discussion in 'PHP' started by bulletbolt, Jun 11, 2018.

  1. bulletbolt

    bulletbolt

    Joined:
    Jun 11, 2018
    Messages:
    1
    Likes Received:
    0
    Hi all,

    I am trying to get multiple rows data which has same id. So the same id can be allocated to different entries and I need to display this.

    The code as follows:
    Any help appreciated :)
     
    bulletbolt, Jun 11, 2018
    #1
    1. Advertisements

  2. bulletbolt

    c1lonewolf

    Joined:
    Sunday
    Messages:
    4
    Likes Received:
    0
    Location:
    Defuniak Springs, Fl.
    you're looking for a one-to-many data table setup. Like a single user that has subscribed to multiple channels. would look something like:
    user_channels
    channel_id | user_id| channel_name
     
    c1lonewolf, Jul 12, 2020 at 9:05 PM
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.