我不会PHP,系统本身有一个标题重复判断。我想在加一个简介重复,简介 description 是不是下面这样写,我这样写不行,
是那里错误了,
$sql2=Db::table(config('database.prefix').'cms_content1')->where(array('title'=>$_POST['title']))->find();
if ($sql2){
exit('标题重复:'.$_POST['title']);
$sql2=Db::table(config('database.prefix').'cms_content1')->where(array('description'=>$_POST['description']))->find();
if ($sql2){
exit('简介重复:'.$_POST['title']);