phpで変数を返し、htmlをajaxにアセンブルする方法を教えてください
function html($select,$name){<br /> global $pagecon;<br /> $a='1';<br /> $b='2';<br /> $result='';<br /> $result.='<ul id="thumbs">';<br /> while($row=$select->fetch()){<br /> $result.='<li class="'.$name.'isotope-item">';<br /> $result.='<img src="ztImg/'.$row['riseimg'].'"width=235 height=300 alt=""//></div><ul>';<br /> $result.='<h3 class="title">'.$row['ztname'].'</h3>';<br /> $result.='<span class="category">'. $row['zttype'].'</span>'; <br /> $result.='<p class="intro">推荐日期:'.$row['zttime'].'</p></div></li>';<br /> }<br /> $result.='</ul>';<br /> $result.='<center><h4>'.$pagecon.'</h4></center>';<br /> return $result,$a,$b;<br /> }