douou9786 2015-09-11 06:28
浏览 44
已采纳

记录更新表单导致内部服务器错误[关闭]

Helo there...

I inserted an Update Record form in Dreamweaver to update the category data on MySQL. The line of coding below is what is giving me the problem.

    <?php echo htmlentities($row_categoryedit['strdiscription'], ENT_COMPAT, 'uft-8'); ?>

If it is included the page gives me an internal server error. If it is excluded the page works, but it dose not update the record.

Also when I preview it live it shows that there is errors on these 2 lines...

    if (isset()) {
    $varCategory_categoryedit = ;

Am I missing something or doing something wrong?

  • 写回答

1条回答 默认 最新

  • douzhicong5965 2015-09-11 06:33
    关注

    you must have a variable in isset() function.

    example:

    if(!isset($varCategory_categoryedit)){ 
      $varCategory_categoryedit = "1"; 
    }
    

    http://php.net/manual/en/function.isset.php

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 在获取boss直聘的聊天的时候只能获取到前40条聊天数据
  • ¥20 关于URL获取的参数,无法执行二选一查询
  • ¥15 液位控制,当液位超过高限时常开触点59闭合,直到液位低于低限时,断开
  • ¥15 marlin编译错误,如何解决?
  • ¥15 有偿四位数,节约算法和扫描算法
  • ¥15 VUE项目怎么运行,系统打不开
  • ¥50 pointpillars等目标检测算法怎么融合注意力机制
  • ¥20 Vs code Mac系统 PHP Debug调试环境配置
  • ¥60 大一项目课,微信小程序
  • ¥15 求视频摘要youtube和ovp数据集