Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2012
    Location
    Philippines
    Posts
    35
    Thanks
    5
    Thanked 0 Times in 0 Posts

    help displaying related records

    i want to be able to display record related to a specific primary key based on the foreign keys on other tables how to be able to display records for that primary key in other tables using php??

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    29,543
    Thanks
    89
    Thanked 4,934 Times in 4,895 Posts
    Can you be more specific?

    What do the two tables you are working with look like?

    How do you want to display them?

    Do you mean something like
    Code:
    Table1Name1
        Table2Name1Datat1 
        Table2Name1Datat2
        Table2Name1Datat3 
    Table1Name2
        Table2Name2Datat1 
        Table2Name2Datat2
        Table2Name2Datat3
    Or what?
    Be yourself. No one else is as qualified.


  •  

    Posting Permissions

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