$sql="select count(*) from cat where catname=$cat[catname]";
$rs=mysql_query($sql);
if(@mysql_fetch_row($rs)[0]!=0){
echo "栏目存在";
exit();
};
Post the error message
$cat[catname] Is this an array? The content in [] should be enclosed in quotation marks
$sql="select count(*) from cat where catname=$cat['catname']";
Post the error message
$cat[catname] Is this an array? The content in [] should be enclosed in quotation marks