[jQuery] jQuery 파일 불러 오기
본문
<?php if($is_admin == 'super') { ?>
<script>
$(document).ready(function(){
var callAjax = function(){
$.ajax({
method:'get',
url:'./bbs/sample.php',
success:function(data){
$("#sample").html(data);
}
});
}
setInterval(callAjax,1000 * 10);
});
</script>
<div id="sample"></div>
<?php } ?>
<script>
$(document).ready(function(){
var callAjax = function(){
$.ajax({
method:'get',
url:'./bbs/sample.php',
success:function(data){
$("#sample").html(data);
}
});
}
setInterval(callAjax,1000 * 10);
});
</script>
<div id="sample"></div>
<?php } ?>
sample.php
<?phpinclude_once('./_common.php');
$row = sql_fetch(" select * from {$g5['member_table']} order by rand() ");
print $row['mb_point'];
?>
추천0
관련링크
댓글목록 0
등록된 댓글이 없습니다.