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

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

问题描述:

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?

you must have a variable in isset() function.

example:

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

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