douyuan4357 2012-04-10 05:24
浏览 46

Jquery Autocomplete中的通知

what is the problem if i got this notice saying:

Notice: Undefined index: 8 in C:\xampp\htdocs\projects\wesm\intranet\plugins\survey_manager\index.php on line 80

i'm using the jquery autocomplete..

here is some of my code for javascript in which the error occurred:

<script type='text/javascript'>
    var intranetUsers = ["<?php echo $content[0].' ", "';
        $num = 1;
        while($num != $getInranetUserCount['num']){
            echo $content[$num].'" , "';
            $num = $num + 1;
        }
            echo $content[$getInranetUserCount['num']];
    ?>"];


</script>

I've already use that code in some module and it works I don't know why it doesn't work this time.

  • 写回答

2条回答 默认 最新

  • dongzhi7641 2012-04-10 05:33
    关注
    var intranetUsers = ["<?php echo $content[0].' ", "';
    

    Would definitely error out. Without knowing the value of either $content or $getInranetUserCount, I'm not sure what you're trying to do here. Perhaps a better question would be explaining what you're trying to do than just giving a small snippet that none of us are going to understand without context.

    评论

报告相同问题?

悬赏问题

  • ¥15 安装svn网络有问题怎么办
  • ¥15 Python爬取指定微博话题下的内容,保存为txt
  • ¥15 vue2登录调用后端接口如何实现
  • ¥65 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥15 latex怎么处理论文引理引用参考文献