Sorry for my unclear explaination.
I mean, I have a program , inside this programA , I will get data from the database and do some calculation. And then, the program A will direct to another php program, say programB, according to the calculation done in programA. However, in programB, I wanna show the data from the database and the calculation.
make it simplier, for example in program A , 2 values are retrieved from database, 10 and 5, what program A does is to add 2 numbers, if the sum is smaller than 20, direct to an html and in that html, 10+5 = 15 which is smaller than 20 should be shown.
If the 2 values are 20 and 15, the page will be directed to an html with 20 + 15 = 35 which is smaller than 35 but larger than 20.
I want those values and results be shown dynamically on the directed page.
How can I do this in php? please advice.
Thanks very much for your help.