doufu7464 2018-11-02 14:34
浏览 58

“解析错误:语法错误,第63行的C:\ Users \ User \ Desktop \ xampp \ htdocs \ tut \ main.php中的文件意外结束”[复制]

I have done a pagination function with ajax, and a few minutes ago it was working fine. when I reload now it shows e an error :

Parse error: syntax error, unexpected end of file in C:\Users\User\Desktop\xampp\htdocs\tut\main.php on line 63.

I don't know maybe I have added any {","} or (",") in the script. I can't find where the error is. I have seen a tutorial and it's the same.

Can you guys help me? ps: I'm a beginner at PHP, AJAX.

<script>  
 //pagination with ajax
 $(document).ready(function(){  
      load_data();  
      function load_data(page)  
      {  
           $.ajax({  
                url:"paginator.php",  
                method:"POST",  
                data:{page:page},  
                success:function(data){  
                     $('#pagination_data').html(data);  
                }  
           })  
      }  
      $(document).on('click', '.pagination_link', function(){  
           var page = $(this).attr("id");  
           load_data(page);  
      });  
 });  
</script>
</div>
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 報錯:Person is not mapped,如何解決?