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

    Getting Table Data into PHP


    I have a script that displays a table with the ability to add and delete rows (ltd-add-company-01.php)

    The code to make this work is located in this file:

    I am able to add and delete rows perfectly.

    The problem comes in when I try to get the information from php.
    It seems to onlly read in 1 row and ignores all the other rows.

    I don't know how to resolve this issue.

    Hoping someone can help me out here.

    Attached Files Attached Files

  2. #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Thanked 637 Times in 625 Posts
    I don't see any PHP code anywhere. That could be a problem, if you're trying to use PHP for data retrieval!

  3. #3
    New Coder
    Join Date
    Oct 2010
    Thanked 0 Times in 0 Posts
    Your file: ltd-addcompany-01.txt starts with <? but doesn't end with ?>. You want this:

    PHP Code:
    Also, in ltd-addcompany-02.txt it looks like you comment out everything except where you initialize your variables.

    Looking further, there is more wrong than I first thought. OK, so ltd-add-company-01.php, you don't need to enclose all the html in <?php ?>. If you do you need to echo the html. If you don't you need to enclose the parts that are php in those tags. Also, your <head></head> tag is missing which should be telling the page where the script is located.
    Last edited by Prime8; 12-11-2012 at 01:19 AM.


Posting Permissions

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