troubleshooting Question

looping thought to output array not working

Avatar of Alex Lord
Alex Lord asked on
* arraysJavaScriptPHP
1 Comment1 Solution73 ViewsLast Modified:
The data


the source of data

$jrArr[$jrID] = array (
				  'info'=> empty($info) ? $getJourney['jrEvent'] : $info,

		$response = array(
			'Result' => 'getJrDetails success',
			'jr' => $jrArr,
			'jrCount' => $jrCount

my effort

for(i = 0; i < response.jr.length; i++){

                      var d = new Date(parseInt(response.jr['date'])*1000);
                                    var day = String(d.getDate());
                                    if(day.length == 1)
                                        day = "0"+day;
                                    var month = String(d.getMonth()+1);
                                    if(month.length == 1)
                                        month = "0"+month;
                                    var year = d.getFullYear();

                     html = html + '<tr id="jr-'+response.jr[i]['id']+'" name="'+response.jr[i]['id']+'">'
                              + '<td>'+day+'-'+month+'-'+year+'</td>'
                              + ' <td>'+response.jr[i]['name']+'</td>'
                              + '<td>'+response.jr[i]['step']+'</td>'
                              + '<td>'+response.jr[i]['info']+'</td>'
                              + '</tr>';

result is none lol so not sure.
Alex Lord

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros