Thank you for the reply.
Now sure how those functions should be used, but I have the code below. All I know is the JSON works for the other parts of my site. For right now this displays nothing on the webpage.
<script>
$(function() {
$( "#accordion" ).accordion();
});
</script><script>
$(document).ready(function(){
/* call the php that has the php array which is json_encoded */
$.getJSON(ReturnPlacesJSON.php, function(data) {
/* data will hold the php array as a javascript object */
$.each(data, function(key, val) {
var latlng = new google.maps.LatLng(val.xcoord, val.ycoord);
var title = (val.title)?val.title:""
var icon = 'http://shanewmiller.com/Specials/images/beermug.png';
var special = val.Description;
var end = (val.endtime)?val.endtime:""
var start = (val.starttime)?val.starttime+" - ":""
var day = (val.day)?val.day:""
var html = val.name + val.address + special + day + start + end;
$('#accordion > h3').each(special);
$('#accordion > div').each("val.name + ' ' + val.address");
});
});
});
</script>
</head>
<body>
<div id="accordion">
</div>
</body>