CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   PHP (http://www.codingforums.com/forumdisplay.php?f=6)
-   -   Getting Table Data into PHP (http://www.codingforums.com/showthread.php?t=283911)

katmac 12-10-2012 05:05 PM

Getting Table Data into PHP
 
3 Attachment(s)
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.

Fumigator 12-10-2012 08:00 PM

I don't see any PHP code anywhere. That could be a problem, if you're trying to use PHP for data retrieval!

Prime8 12-11-2012 12:15 AM

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.


All times are GMT +1. The time now is 03:32 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.