I am doing SQL query in ASP page, and getting a 100 rows and 7 columns of data.
For example, I read from the query string in my URL or the form I submitted as POST / GET,
I got this: " myexample.com/order.php?month=2012-03
", I use the " 2012-03 " as my value in ASP page to run a query " SELECT * FROM CustomerSalesOrder WHERE date LIKE '2012-03%'
"
Now, as above mentioned, I got 100 rows with 7 columns of data about my customers purchase what in March.
How to convert these data into an array and passing to a PHP page to generate table with data display on the table ?
(I understand that I can run everything in 1 web programming language. But the step to run query in ASP page has been fixed, can not be changing; and the step to display data on PHP page also fixed. ASP page located in myexample.com, while PHP page located in mywork.com)
Please guide me the step-by-step of:
- dump my data into array in ASP page, and
- how to pass my data (in array form) to PHP page to display data in a proper formatted table form
I expect the expert to guides me the data converting into array in ASP, and the step of array passing to PHP page.
Then, in PHP page, how to explode every data in array or assign the data to value for variable? (I guess need to be using looping, any loop method is the best in this case?) Once I got the value either in looping or another way, then loop again into table.