foreach($data['data'] as $data){
$count = $data['number'];
}
// $data['number']; will return some number like:
159809
359107
249178
... //10+ numbers
Then, how to put each php foreach value into each jquery ajax? (put every number via a jquery ajax, there will be 10+ ajax calls, and return all the data in one div). Thanks.
<script type="text/javascript">
jQuery(document).ready(function(){
$.ajax({
url: "process.php",
dataType: "html",
type: 'POST',
data: "items=<?php echo $count; ?>", //each $count value in each ajax
success: function(data){
$("#result").html(data);
}
});
});
</script>
<div id="result"></div>
$count = $data['number'].'a';then exploreato get each number inprocess.php, but howprocess.phpcan know how many explored numbers it will have? it also will make a mistake like$explored[0],explored[1]... what is the last one?