我有一个数据库问题,我得到完整性约束违规:1062。我自己尝试了一些东西,但没有成功,所以现在我请你们看看你们是否可以帮助我。elseif($action=='add'){if($_POST['create']==true){$title=$_POST['txtTitle'];$txtParentCategorie=$_POST['txtParentCategorie'];$txtContent=$_POST['txtContent'];if($txtParentCategorie=="niks"){$txtParentCategorie=NULL;$chkParent=1;$orde
我有一个数据库问题,我得到完整性约束违规:1062。我自己尝试了一些东西,但没有成功,所以现在我请你们看看你们是否可以帮助我。elseif($action=='add'){if($_POST['create']==true){$title=$_POST['txtTitle'];$txtParentCategorie=$_POST['txtParentCategorie'];$txtContent=$_POST['txtContent'];if($txtParentCategorie=="niks"){$txtParentCategorie=NULL;$chkParent=1;$orde