I need some guidance, research direction in writing a page. The page is a “This day in history” page.
I successfully retrieved a dataset from a MySQL database whose definition is:
$varDump = array('date', 'description');
I returned the data to a jQuery AJAX post call with a PHP statement:
print_r ($varDump);
and when the data is returned it looks like below:
Array ( [0] => date [1] => Rescription
[2] =>Array ( [date] => 1715-05-03 [description] => Edmund Halley observes total eclipse phenomenon "Baily's Beads" )
[3] => Array ( [date] => 1765-05-03 [description] => 1st US Medical school opened )
[4] => Array ( [date] => 1797-05-03 [description] => Jamaica discovered by Columbus )
So the help I need is how to reorganize the data to build a table in my jQuery AJAX post. I would appreciate guidance.
Thanks!