Pass Query result to another page
Posted: Tue Mar 20, 2012 10:25 pm
Hi guys, I'm very very new to Php so forgive me if this problem I have would be a piece of cake to all of you. I badly need your help!
There are still a lot of functions and even terms that I am not familiar with but I'm trying hard to learn a little everyday.
I have created a simple webpage where I can input data and save it to my database.
I have also created this code that retrieves the value from my database and displays the results in a table.
Here's the code I used to retrieve data from the database.

Here's an illustration on how the data are displayed when I access the page.

There's a "SUBMIT" and a "DELETE" button. What I want when I click the Submit button is to display the result("1", "AAA", and "0000") in another page that would allow me to modify the values. That would make the submit button function as EDIT, so maybe I'll just rename it to "EDIT" later.
Or the result should look at least like this in the new page:
Fund Type: 1
Fund Name: 2
Base Price: 0000
I've tried the simple POST and GET method. It worked because I followed a sample from the web where I input a data and it is automatically displayed on the other page when I hit the submit button. But I can't make it work with displaying this data that were just retrieved from the database.
Any help and suggestions would be greatly appreciated.
There are still a lot of functions and even terms that I am not familiar with but I'm trying hard to learn a little everyday.
I have created a simple webpage where I can input data and save it to my database.
I have also created this code that retrieves the value from my database and displays the results in a table.
Here's the code I used to retrieve data from the database.

Here's an illustration on how the data are displayed when I access the page.

There's a "SUBMIT" and a "DELETE" button. What I want when I click the Submit button is to display the result("1", "AAA", and "0000") in another page that would allow me to modify the values. That would make the submit button function as EDIT, so maybe I'll just rename it to "EDIT" later.
Or the result should look at least like this in the new page:
Fund Type: 1
Fund Name: 2
Base Price: 0000
I've tried the simple POST and GET method. It worked because I followed a sample from the web where I input a data and it is automatically displayed on the other page when I hit the submit button. But I can't make it work with displaying this data that were just retrieved from the database.
Any help and suggestions would be greatly appreciated.