Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in on line 10 и объясните пожалуйста! спасибо. Код (Text): <table width="700" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="tab1"> <table class="zag_page" align="center"><tbody><tr><td align="center" valign="middle">Чат</td></tr></tbody></table> </td></tr> <tr><td class="tab2"> <div class="block_tab"> <?PHP if(isset($_POST["clean"]) && $ku['status']>0){ if(isset($_POST["payment"])); $db->Query("SELECT COUNT(*) FROM `kolhoz_chat` WHERE `id` = '1' AND `type` = 'room'".($ku['status']<=1?" AND `admod` = '0'"":null).""),0)!=0); $chat=$db->FetchArray($db->Query("SELECT * FROM `kolhoz_chat` WHERE `id` = '1' AND `type` = 'room'")); if($_GET['clean']=='ok') $db->Query("delete from `kolhoz_chat` where `mother` = '$chat[id]' and `type` = 'komm'"); header("Location:?chat"); else echo '<div class="event"><h1>Подтверждение</h1></div><div class="block"><ul class="block"><li><span class="title">Вы уверены?</span></li><li class="pt"><img alt="" width="16" height="16" src="images/icons/tick.png"> <a href="?chat='.$chat['id'].'&clean=ok"><span> Да, подтверждаю</span></a></li><li><img alt="" width="16" height="16" src="images/icons/cross.png"> <a href="?chat='.$chat['id'].'"><span> Нет, отказываюсь</span></a></li></ul></div>'; include_once 'inc/foot.php'; } elseif(isset($_GET['del_komm']) && intval($_GET['del_komm'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_chat` WHERE `id` = '".intval($_GET['del_komm'])."' AND `type` = 'komm'"),0)!=0 && $ku['status']>0) { $db->Query("delete from `kolhoz_chat` where `mother` = '$chat[id]' and `type` = 'komm' and `id` = '".intval($_GET['del_komm'])."'"); header("Location:?chat"); } elseif(isset($_GET['del']) && $ku['status']>0) { if($_GET['del']=='ok') { $db->Query("delete from `kolhoz_chat` where `mother` = '$chat[id]' and `type` = 'komm'"); $db->Query("delete from `kolhoz_chat` where `id` = '$chat[id]' and `type` = 'room'"); header("Location:?chat");
Андрей12 скобки https://php.net/manual/ru/control-structures.if.php Слабо просто прочитать один раз всю документацию https://php.net/manual/ru/index.php