SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jul 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Master-Detail or Parent-Child Form in PHP

    I have been working on PHP for quite sometime but recently I have been faced with a situation in which I have to create a MASTER DETAIL form having CRUD operations [Create, Read, Update and Delete]. In PHP, i have never done this and looking for some sample code in order to achieve this.

    Let me give an example what I want to achieve:

    Master Information: [Voucher_Master]
    ===============
    Transaction Number:
    Voucher Date:
    Voucher Description:

    Detail Information: [Voucher_Detail]
    ==============
    Account Code Account Name Debit Credit

    There is one to many relationship between Voucher_Master and Voucher_Detail.

    I would be very thankful if somebody can guide me in this regard.

    Eagerly waiting for response.

  2. #2
    SitePoint Guru
    Join Date
    Jun 2006
    Posts
    638
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    read on on MySQL and relational databases mate.

  3. #3
    SitePoint Member
    Join Date
    Jul 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am very well aware with the database side of it but confused in developing a form through PHP.

    Any help will be highly appreciated

  4. #4
    Mal Reynolds Mandibal's Avatar
    Join Date
    Aug 2003
    Location
    Columbus
    Posts
    718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by rehanqadri View Post
    I am very well aware with the database side of it but confused in developing a form through PHP.

    Any help will be highly appreciated
    So what exactly are you looking for as an example? You say you've worked with PHP for quite some time but you're confused in developing a form through PHP. Do you want so see the HTML for this form and a complete PHP script that would handle the entire CRUD part?
    Erh


Bookmarks

Posting Permissions

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