语法错误,意外的T
<?php
if(isset($_POST['zapisz'])) {
$zapytanie_update = mysql_query("UPDATE `emotki` SET `kod` = '".$_POST['kod']."',`opis` = '".$_POST['opis']."', `glowna` = '".$_POST['glowna']."' WHERE id= $id");
echo 'Emotka zapisana.<br/><a href="index.php">« Powrót</a>';
}
$usun = $_POST['usun'];
if(isset($usun == 1)
{
$usuwaj = mysql_query("DELETE FROM `emotki` WHERE 'id'= $id");
}
else {
?>
我有(!)解析错误:语法错误,意外的T_IS_EQUAL,期待','或')'在第63行的C: wamp www emotki_admin edytuj.php中
第63行是if(isset($usun == 1)
错误在哪里?
你错过了一个括号:
if(isset($usun) == 1)
但无论如何比较是不必要的。 所有你需要的是:
if(isset($usun))
因为isset()
返回一个布尔值。
你错过了一个括号:
if(isset($usun == 1)
应该
if(isset($usun == 1))
链接地址: http://www.djcxy.com/p/12037.html
上一篇: syntax error, unexpected T
下一篇: How to check if a text box is not empty and the value is less than 500