Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-10-2012, 05:05 PM   PM User | #1
katmac
New Coder

 
Join Date: Aug 2012
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
katmac is an unknown quantity at this point
Getting Table Data into PHP

Hi

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:
(mma-functions.js)

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.

Thx.
Attached Files
File Type: txt ltd-add-company-01.txt (3.8 KB, 19 views)
File Type: txt ltd-add-company-02.txt (2.2 KB, 17 views)
File Type: txt mma-functions.txt (1.7 KB, 15 views)
katmac is offline   Reply With Quote
Old 12-10-2012, 08:00 PM   PM User | #2
Fumigator
UE Antagonizer


 
Fumigator's Avatar
 
Join Date: Dec 2005
Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Posts: 7,686
Thanks: 42
Thanked 637 Times in 625 Posts
Fumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of light
I don't see any PHP code anywhere. That could be a problem, if you're trying to use PHP for data retrieval!
__________________
Fumigator is offline   Reply With Quote
Old 12-11-2012, 12:15 AM   PM User | #3
Prime8
New Coder

 
Join Date: Oct 2010
Posts: 51
Thanks: 2
Thanked 0 Times in 0 Posts
Prime8 is an unknown quantity at this point
Your file: ltd-addcompany-01.txt starts with <? but doesn't end with ?>. You want this:

PHP Code:
<?php
.
.
.
?>
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 12:19 AM..
Prime8 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:26 AM.


Advertisement
Log in to turn off these ads.