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
    25,189
    Thanks
    75
    Thanked 4,341 Times in 4,307 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?
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

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