I have tried looking at the related links and googled this, but I haven't found anything that can exactly help me. And excuse a web development newb here. This is probably a really easy answer:
What I'm doing is an ajax javascript function that calls a php file. This php file connects to the database and gets all the information from a table, like so:
<?php require_once('Connections/callConn.php'); ?>
<?php
$query_getStatus = "SELECT tStatus FROM tables";
$status = mysql_query($query_getStatus, $callConn) or die(mysql_error());
$row_status = mysql_fetch_assoc($status);
$tStatus = $row_status['tStatus'];
echo $tStatus;
mysql_close($con);
?>
And then in my javascript function, I have a var equal to the xmlhttp.responseText. What I want to do is parse this so I can make an array out of it, then do a for loop with that array. But I'm honestly not sure how to do it. Like I said, likely very easy, I just can't find an example for this. Thanks!